Demo entry 6363153

Grammar for order shipping

   

Submitted by anonymous on May 12, 2017 at 11:27
Language: Relax-NG Compact. Code size: 728 Bytes.

# vim: set et ts=2 sw=2:

default namespace = ""

grammar {

  PriceType = xsd:decimal { minInclusive = "0.0" }

  start = element shiporder {
            attribute orderid { xsd:positiveInteger},
            element orderperson { xsd:string },
            Address,
            Item+
          }

  Address = element shipto {
              element name { xsd:string },
              element street { xsd:string },
              element city { xsd:string },
              element country { xsd:string }
            }

  Item = element item {
           element title { xsd:string },
           element note { xsd:string }?,
           element quantity { xsd:positiveInteger },
           element price { PriceType }
        }

}

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).