[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xalan-dev
Subject:    [jira] Commented: (XALANJ-1912) match="and" causes error - doesn't comply with XPath spec section 3.
From:       "Michal Borowiecki (JIRA)" <xalan-dev () xml ! apache ! org>
Date:       2005-09-19 15:50:28
Message-ID: 1315195661.1127145028922.JavaMail.jira () ajax ! apache ! org
[Download RAW message or body]

    [ http://issues.apache.org/jira/browse/XALANJ-1912?page=comments#action_12329872 ] 

Michal Borowiecki commented on XALANJ-1912:
-------------------------------------------

I confirm that it is fixed in 2.7.0

> match="and" causes error - doesn't comply with XPath spec section 3.7
> ---------------------------------------------------------------------
>
>          Key: XALANJ-1912
>          URL: http://issues.apache.org/jira/browse/XALANJ-1912
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: Operating System: Other
> Platform: PC
>     Reporter: Michal Borowiecki
>     Assignee: Santiago Pericas-Geertsen
>     Priority: Critical
>      Fix For: 2.7
>  Attachments: XalanJ1912Patch.txt, xpath.lex.patch
>
> 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic