Re: Possible grammar errors in REC-rdf-syntax-grammar-20040210

I agree.

I've been working with these very productions for the past couple of days, 
and still didn't notice until reading this message!  At least the intent 
remains fairly obvious, I think.

#g
--

At 17:00 09/07/04 +0900, Masayasu Ishikawa wrote:

>Hello,
>
>In "7 RDF/XML Grammar" [1], I think Grammar Productions 7.2.15 through
>7.2.21 are erroneous, that is, they have mismatched parentheses in
>the definition of start-element.  For example, "7.2.15 Production
>resourcePropertyElt" is defined as follows [2]:
>
>     start-element(URI == propertyElementURIs ),
>         attributes == set(idAttr?))
>     ws* nodeElement ws*
>     end-element()
>
>I believe ")" after propertyElementURIs shouldn't be there, and
>the correct Production should be:
>
>     start-element(URI == propertyElementURIs,
>         attributes == set(idAttr?))
>     ws* nodeElement ws*
>     end-element()
>
>It's been erroneous since WD-rdf-syntax-grammar-20021108, and in
>WD-rdf-syntax-grammar-20020325 it was defined as follows [3]:
>
>     start_element(URI=anyURI - ( rdf:RDF | rdf:Description | rdf:ID | 
> rdf:about | rdf:bagID | rdf:parseType | rdf:resource ),
>         attributes=set(idAttr?))
>     ws* nodeElement ws*
>     end_element()
>
>It seems someone forgot to remove ")" in the first line while updating
>the grammar.
>
>[1] 
>http://www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/#section-Infoset-Grammar
>[2] 
>http://www.w3.org/TR/2004/REC-rdf-syntax-grammar-20040210/#resourcePropertyElt
>[3] 
>http://www.w3.org/TR/2002/WD-rdf-syntax-grammar-20020325/#resourcePropertyElt
>
>Regards,
>--
>Masayasu Ishikawa / mimasa@w3.org
>W3C - World Wide Web Consortium

------------
Graham Klyne
For email:
http://www.ninebynine.org/#Contact

Received on Friday, 9 July 2004 06:36:04 UTC