I want xml such as
<test applicable='document'/>
or
<test applicable='application' class='text spreadsheet'/>
<test applicable='application' class='text spreadsheet database'/>
etc
I.e. any combination of 4 token values
My rng below is invalid.
Is this possible please - if not any ideas
on how it might be done, rather than writing out all 24 permutations!
TIA DaveP
<element name='test'>
<choice>
<group>
<attribute name='applicable'>
<value type='token'>application</value>
</attribute>
<attribute name='class'>
<oneOrMore>
<value type="token">text</value>
<value type='token'>spreadsheet</value>
<value type='token'>presentation</value>
<value type='token'>database</value>
</oneOrMore>
</attribute>
</group>
<attribute name='applicable'>
<value type='token'>document</value>
</attribute>
</choice>
</element>
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk