by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)


Name

except (in the context of a except-name-class) — Remove a name class from another

Synopsis

element except
{
 (
 ( element * - rng:* { ... }* )
 & (
 element name { ... }
 | element anyName { ... }
 | element nsName { ... }
 | element choice { ... }
 )+
 )
}

Class

except-name-class

May be included in

anyName, nsName

Compact syntax equivalent

-nameClass

Description

The except name class can remove a name class from another. Note that this name class has no attributes.

Restrictions

It's impossible to use except to produce empty name classes by including anyName in an except name class or nsName in an except name class included in another nsName.

Example

<element>
  <anyName>
    <except>
      <nsName ns=""/>
      <nsName ns="http://eric.van-der-vlist.com/ns/library"/>
      <nsName ns="http://eric.van-der-vlist.com/ns/person"/>
    </except>
  </anyName>
  <ref name="anything"/>
</element>
<element>
 <nsName ns=ns="http://eric.van-der-vlist.com/ns/person"/>
   <except>
     <name>lib:name</name>
     <name>hr:name</name>
   <except>
 </nsName>
 <ref name="anything"/>
</element>

Attributes

None


This text is released under the Free Software Foundation GFDL.