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


Name

except (in the context of a pattern) — Remove a set of values from a data

Synopsis

element except
{
 (
 attribute ns { text }?,
 attribute datatypeLibrary { xsd:anyURI }?,
 attribute * - (rng:* | local:*) { text }*
 ),
 (
 ( element * - rng:* { ... }* )
 & (
 element element { ... }
 | element attribute { ... }
 | element group { ... }
 | element interleave { ... }
 | element choice { ... }
 | element optional { ... }
 | element zeroOrMore { ... }
 | element oneOrMore { ... }
 | element list { ... }
 | element mixed { ... }
 | element ref { ... }
 | element parentRef { ... }
 | element empty { ... }
 | element text { ... }
 | element value { ... }
 | element data { ... }
 | element notAllowed { ... }
 | element externalRef { ... }
 | element grammar { ... }
 )+
 )
}

Class

pattern

May be included in

data

Compact syntax equivalent

-pattern

Description

The except pattern is used to remove a set of values from a data pattern.

Restrictions

The except pattern can be used only in the context of data and can contain only data, value, and choice elements.

Example

<element name="isbn">
  <data type="token">
<except>
 <value>0836217462</value>
</except>
</data>
</element>
<attribute name="available">
<data type="token">
<except>
 <choice>
  <value type="string">true</value>
  <value type="string">false</value>
 </choice>
</except>
</data>
</attribute>

Attributes

datatypeLibrary

This attribute defines the default datatype library. The value is inherited.

ns

This attribute defines the default namespace for the elements defined in a portion of schema. The value is inherited.


This text is released under the Free Software Foundation GFDL.