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

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

Received on Friday, 9 July 2004 04:01:18 UTC