[Bug 1520] New: Editorial & Suggestion: distinguish different QNames in EBNF

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1520

           Summary: Editorial & Suggestion: distinguish different QNames in
                    EBNF
           Product: XPath / XQuery / XSLT
           Version: Last Call drafts
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XPath
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: frans.englich@telia.com
         QAContact: public-qt-comments@w3.org


Hi,     
     
As known, QNames receives different treatment depending on context -- what     
default namespace that should be used.     
     
This could be communicated in the EBNF by having two rules that both expand to     
the QName token, referenced from the appropriate productions. An example:     
     
FunctionQName         ::= QName     
ElementQName          ::= QName     
     
NameTest              ::= ElementQName | Wildcard     
FunctionCall          ::= <FunctionQName "("> (ExprSingle (","     
                                   ExprSingle)*)? ")"     
...    
    
I would find the grammar useful in that way; the question is if that should be   
valued higher than the increased complexity, and change in EBNF at this stage   
of development. But it is also nothing more than a suggestion. 
  
   
Cheers,     
Frans

Received on Sunday, 3 July 2005 18:19:53 UTC