Hi Dave,

Something like below perhaps?

<attribute name='class'>
     <list>
         <oneOrMore>
             <choice>
                 <value type="token">text</value>
                 <value type="token">spreadsheet</value>
                 <value type="token">presentation</value>
                 <value type="token">database</value>
             </choice>
         </oneOrMore>
     </list>
</attribute>

Best Regards,
George
-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Dave Pawson wrote:
> 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>
> 
> 
> 

Reply via email to