Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: Pattern constraint on string content of complexType having attribute and choice

From: "Michael Kay" <mhk@---.--.-->
To: "'Jeni Tennison'" <jeni@------------.--->, "'Wyatt Barton'" <hiddenharvest@-----.--->
Date: 8/11/2004 5:24:00 PM
> Just because I'm interested, can you give more details about the
> markup-language design that you're trying to support here?

If you do a direct translation of GEDCOM into XML you get a similar
requirement. GEDCOM uses elements that contain a value followed by
qualifiers, for example

<occupation>baker
  <date>10 MAR 1566
   <note>unsure which calendar
     <author>MHK</author>
     <date>10 AUG 2004</date>
   </note>
  </date>
</occupation>

The obvious answer of puttting the value in another layer of markup:

<occupation><value>baker</value>
  <date><value>10 MAR 1566</value>
   <note><value>unsure which calendar</value>
     <author><value>MHK</value></author>
     <date><value>10 AUG 2004</value></date>
   </note>
  </date>
</occupation>

is pretty ugly, and is excessively verbose when 95% of values have no
qualifier.


Michael Kay


From nobody@w... Wed Aug 11 18:30:24 2004
Received: fro


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent