XML-Schema für die Reihenfolge der Elemente mit gleichem Namen, aber unterschiedlichen Attributwerten?

Wie kann ich angeben, wird ein XML-schema für eine Instanz-Dokument wie dieses:

<productinfo>
  <!-- other stuff -->
  <informationset type="Manufacturer">
    <!-- content not relevant -->
  </informationset>
  <informationset type="Ingredients">
    <!-- content not relevant -->
  </informationset>
</productinfo>

ist, eine "productinfo" - element enthält eine Sequenz von zwei "informationset" Kinder, das erste mit @type="Manufacturer" und das zweite hatte @type="Ingredients"?

InformationsquelleAutor | 2009-05-05
Schreibe einen Kommentar