[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [relax-ng] Trang bug?
----- Original Message -----
From: "Mike Fitzgerald" <mike@wyeast.net>
To: "James Clark" <jjc@jclark.com>
Cc: "RELAX NG List" <relax-ng@lists.oasis-open.org>
Sent: Tuesday, March 18, 2003 12:40 PM
Subject: 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 }
But your RNC doesn't have a definition for start. If you tried to use
jing -c with simple.rnc, it would complain since simple.rnc isn't a
standalone correct RELAX NG schema by itself. Trang doesn't complain
because simple.rnc could potentially be part of a correct RELAX NG schema
and the translation to RELAX NG XML syntax is well defined. This is a
feature, not a bug.
> 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>
>
>
>
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]