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

> 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

Received on Wednesday, 11 August 2004 17:29:05 UTC