[rfc-i] draft-xml2rfc-21 error in rnc

paul.hoffman at vpnc.org (Paul Hoffman) Mon, 31 August 2015 23:55 UTC

From: "paul.hoffman at vpnc.org"
Date: Mon, 31 Aug 2015 16:55:09 -0700
Subject: [rfc-i] draft-xml2rfc-21 error in rnc
In-Reply-To: <55E4DEAD.7040306@tzi.org>
References: <20150831103117.GA11731@miek.nl> <FB9DAEB0-A385-49D0-AE96-30F16B6AF52D@vpnc.org> <55E4DEAD.7040306@tzi.org>
Message-ID: <EDB64F32-55E6-461C-B820-D71E7C88B5CE@vpnc.org>

On 31 Aug 2015, at 16:09, Carsten Bormann wrote:

> The problem appears to be this snippet:
>
> anything =
>   element * {
>     attribute * { text }*,
>     anything*
>   }
>
> This essentially says, all elements have all attributes with text 
> structure.
> This of course then conflicts with all attributes that are not defined
> to have text structure.

I'm weak on this level of RNG. The RNG that generated this RNC is:

   <define name="anything">
     <element>
       <anyName/>
       <zeroOrMore>
         <attribute>
           <anyName/>
         </attribute>
       </zeroOrMore>
       <zeroOrMore>
         <ref name="anything"/>
       </zeroOrMore>
     </element>
   </define>

The "anything" element appears as a child of only one element, <svg>. 
The idea is that <svg> can have any element under it, not just the ones 
we define in this spec. Clues for how this should be better stated are 
appreciated.

--Paul Hoffman