Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Problem with Relax NG Problem with Relax NGTo: NULL Date: 9/10/2008 4:56:00 PM
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>
</element>
</zeroOrMore>
</define>
</grammar>
The error messages are:
ERROR:
Error type 'text' is not exported by type library
'http://relaxng.org/ns/structure/1.0'
line 22
ERROR:
Type library 'http://relaxng.org/ns/structure/1.0' does not allow type
parameters
line 22
Does this make sense to anyone here?
Thanks
Joe
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
