OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng-comment message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: [relax-ng-comment] Mixing patterns and (empty) tags


How do you mix restricted text patterns with empty elements
(used to represent escaped text)?

<example>
    The quick <a/> brown fox </b> <a/> jumped <c/> over the lazy dog 5 times.
<c/>
</example>

I've tried  variants on

 <element name="example">
  <zeroOrMore>
   <choice>
    <list>
     <oneOrMore>
      <data type="token">
                <param name="pattern">[a-zA-Z0-9]+</param>
            </data>
     </oneOrMore>
    </list>

    <element name="a"> <empty/> </element>
    <element name="b"> <empty/> </element>
    <element name="c"> <empty/> </element>
  </zeroOrMore>
 </element>

and with <interleave>, but both MSV and Jing give cryptic error messages.

[ For extra gratitude can anyone tell me whether XSD can cope with this? ]


Thanks in advance

Daniel

--
Dr Daniel Prager
Research Fellow & Consultant
Deakin University & Freelance

Phone: +61 3 9251 7484
Web: www.deakin.edu.au/~danielp




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC