Non-XML RELAX NG Syntax

element SONG {
  element TITLE { text }
  & element COMPOSER { text }*
  & element PRODUCER { text }*
  & element PUBLISHER { text }?
  & element LENGTH { xsd:duration }
  & element YEAR { xsd:gYear }
  & element ARTIST { text }+
  & element PRICE {
      xsd:string { pattern = "\p{Sc}\p{Nd}+(\.\p{Nd}\p{Nd})?" }
    }?
}
 

Previous | Next | Top | Cafe con Leche

Copyright 2000-2003, 2006 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified January 16, 2003