Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Problem with Relax NG [Thread Next] Re: Problem with Relax NGTo: NULL Date: 9/11/2008 1:43:00 PM * jhalpin wrote in comp.text.xml: >I'm trying to write a schema. I have a compact form version which works >fine, but the equivalent (?) xml format gets syntax errors from XML Nanny. >Here's the schema > ><?xml version="1.0" encoding="UTF-8"?> ><grammar xmlns="http://relaxng.org/ns/structure/1.0" > > xmlns:xs="http://www.w3.org/2001/XMLSchema"> > <start> > <element name="test"> > <element name="element1"> > <text /> > </element> > <ref name="element2" /> > </element> > </start> > > <define name="element2"> > <oneOrMore> > <ref name="element3" /> > </oneOrMore> > </define> > > <define name="element3"> > <zeroOrMore> > <element name="stringPattern"> > <data type="text"> > <param name="pattern">[0-9]+</param> > </data> The built-in type as well as the XML Schema type is called "string" and you have to specify the datatypeLibrary in order to use the parameter. -- Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
