Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Pattern constraint on string content of complexType having attribute and choice [Thread Next] RE: Pattern constraint on string content of complexType having attribute and choiceTo: "'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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
