DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30178>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30178

match="and" causes error - doesn't comply with XPath spec section 3.7

           Summary: match="and" causes error - doesn't comply with XPath
                    spec section 3.7
           Product: XalanJ2
           Version: 2.6
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: org.apache.xalan.xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Trying to compile a stylesheet with 'template match="and"' or with 'template
match="or"' causes an error. The compiler reports a syntax error. Probably it
interprets the expression "and" as an OperatorName.
However, the XPath spec in section 3.7 (http://www.w3.org/TR/xpath#exprlex)
states clearly that a token must not be recognized as an OperatorName unless
there is a preceding token (other than @, ::, (, [, , or an Operator).
In the expression "and" there is only one token (namely "and"). There is no
preceding token, so the token "and" must NOT be recognized as an OperatorName!
Instead it should be recognized as a NameTest, matching an XML element named "and". 
The same applies to "or".

Regards,
MichaƂ Borowiecki

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to