This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 2892 - QName listed twice in state ITEMTYPE
Summary: QName listed twice in state ITEMTYPE
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery/XPath Tokenizer (show other bugs)
Version: Candidate Recommendation
Hardware: Other Linux
: P2 normal
Target Milestone: ---
Assignee: Scott Boag
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-18 13:01 UTC by Frans Englich
Modified: 2006-04-04 16:22 UTC (History)
0 users

See Also:


Attachments

Description Frans Englich 2006-02-18 13:01:42 UTC
Hi,    
    
 I'm definitely no scanner expert so I can very well be wrong. Nevertheless:   
   
In the table for the ITEMTYPE state, QName is listed twice. Once in the second   
row after void(), and once on the sixth row next to item(). In the former case   
the action is a transition to OPERATOR while the latter is 
OCCURRENCEINDICATOR. I think the first occurrence of the QName should be 
removed, since the latter is sufficient and it would also avoid ambiguity. 
Perhaps the first QName was at somepoint added to handle when no occurrence 
indicator is specified(cardinality exactly-one), but the OCCURRENCEINDICATOR 
state handles that, from what I can tell. 
   
(Will file separately on void()/empty-sequence())   
   
 
Regards,   
Frans
Comment 1 Scott Boag 2006-03-29 22:06:14 UTC
The "Building a Tokenizer for XPath or XQuery" is obsolete.  If you do want to know what states we use to build our current test parser, the states are specified in the XML definition of the joint grammar, http://www.w3.org/XML/Group/xsl-query-specs/grammar/parser/applets/xpath-grammar.xml.
Note that the current test parser uses selective LL(2) or LL(3) lookahead, and the 
number of tokenizer states has been greatly decreased.