O'Reilly logo

XML: kurz & gut by Michael Fitzgerald, Simon St. Laurent

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

rng:externalRef

Verweist auf ein externes Schema.

Beispiel für XML-Syntax

<element name="datum" xmlns="http://relaxng.org/ns/
 structure/1.0">
<interleave>
 <element name="jahr">
  <list>
   <choice>
    <value>2002</value>
    <value>2003</value>
    <value>2004</value>
    <value>2005</value>
    <value>2006</value>
     <value>2007</value>
   </choice>
  </list>
 </element>
 <externalRef href="monat.rng"/>
 <externalRef href="tag.rng"/>
</interleave>
</element>

Beispiel für kompakte Syntax

element datum {
  element jahr {
    list { "2002" | "2003" | "2004" | "2005" | "2006" |
    "2007" }
  }
  & external "monat.rnc"

  & external "tag.rnc"

}

Attribut

href

Eine Ortsangabe für das externe Schema.

Eltern

attribute, choice (( ) und |), define (Name des Musters, gefolgt von =), element, except (-), group ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required