W3C home > Mailing lists > Public > www-rdf-comments@w3.org > October to December 1999

6.27 alternative grammar question

From: Frederick Hirsch <hirschf@certco.com>
Date: Fri, 12 Nov 1999 10:34:08 -0500
Message-ID: <382C336F.86648085@certco.com>
To: www-rdf-comments@w3.org
I do not understand why production 6.27 in the RDF  Resource Description
Framework Model and Syntax specification is

[6.27] alternative    ::= '<rdf:Alt' idAttr? '>' member+ '</rdf:Alt>'
                         | '<rdf:Alt' idAttr? memberAttr? '/>'

Since you must have at least one member shouldn't the memberAttr in the
attribute form have at least one, as:

[6.27] alternative    ::= '<rdf:Alt' idAttr? '>' member+ '</rdf:Alt>'
                         | '<rdf:Alt' idAttr? memberAttr+ '/>'

I thought memberAttr? would mean an optional memberAttr but that for
alternative at least one is required.

thanks

< Frederick
Received on Friday, 12 November 1999 10:28:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 21 September 2012 14:16:27 GMT