recipeml

Element Information

Model

Children: menu, meta, recipe

Attributes

QName Type Fixed Default Use Inheritable Annotation
class xs:NMTOKEN optional
generator optional
id xs:ID optional
title optional
version xs:NMTOKEN 0.5 optional
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.

Source

<xs:element name="recipeml">
  <xs:complexType>
    <xs:sequence>
      <xs:element ref="meta" minOccurs="0" maxOccurs="unbounded"/>
      <xs:choice>
        <xs:element ref="menu"/>
        <xs:element ref="recipe"/>
      </xs:choice>
    </xs:sequence>
    <xs:attribute name="version" type="xs:NMTOKEN" fixed="0.5"/>
    <xs:attribute name="generator"/>
    <xs:attribute name="id" type="xs:ID"/>
    <xs:attribute name="class" type="xs:NMTOKEN"/>
    <xs:attribute name="title"/>
    <xs:attribute ref="xml:lang"/>
  </xs:complexType>
</xs:element>

Sample