RE: [relax-ng] Trang bug?

From
Mike Fitzgerald <>
Date
2003-03-18T05:32:59+00:00
ID
Thread
RE: [relax-ng] Trang bug?
> If the RNC did have a "start =", then that sounds like a bug.  If you
> send me the RNC, then I can deal with it.
>
> James

Here's the RNC. -Mike



C:\XML\Rng\Examples>cat simple.rnc
# hello
## hello
simple = element simple { text }

C:\XML\Rng\Examples>java -jar c:\lib\trang.jar simple.rnc simple.rng

C:\XML\Rng\Examples>cat simple.rng
<?xml version="1.0" encoding="UTF-8"?>
<grammar xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
xmlns="http://
relaxng.org/ns/structure/1.0">
  <!-- hello -->
  <define name="simple">
    <a:documentation>hello</a:documentation>
    <element name="simple">
      <text/>
    </element>
  </define>
</grammar>

C:\XML\Rng\Examples>cat simple.xml
<simple>this is some text</simple>

C:\XML\Rng\Examples>java -jar c:\lib\jing.jar simple.rng simple.xml
C:\XML\Rng\Examples\simple.rng:2: error: missing "start" element

C:\XML\Rng\Examples>