Name

rng:anyName

Gibt ein Muster für einen Namen an, der auf jeden Namen in jedem Namensraum passt.

Beispiel für XML-Syntax

<grammar xmlns="http://relaxng.org/ns/structure/1.0">

<start>
 <ref name="any"/>
</start>

<define name="any">
 <element>
  <anyName/>
  <zeroOrMore>
   <choice>
    <attribute>
     <anyName/>
    </attribute>
    <text/>
    <ref name="any"/>
   </choice>
  </zeroOrMore>
 </element>
</define>

</grammar>

Beispiel für kompakte Syntax

start = any
Elternany = element * { (attribute * { text } | text | any)* }

Eltern

attribute, choice, element, except

Beschreibung

Wenn das anyName-Element als Kindelement eines Attributs oder eines Elementmusters verwendet wird, dann passt dieses Muster auf jeden Element- oder Attributnamen mit einem beliebigen Namensraum in der Instanz. ...

Get XML: kurz & gut now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.