[ http://issues.apache.org/jira/browse/XALANC-528?page=all ]

Axel Weiss updated XALANC-528:
------------------------------

    Attachment: test1.xsl
                test2.xsl
                test3.xsl

$ Xalan test.xml test1.xsl
position: y1
position: y2
position: y3
$ Xalan test.xml test2.xsl
XPathParserException: '{0}' is an unknown node type.
expression = '/test/b/[EMAIL PROTECTED]/position()' Remaining tokens are:  ( 
'position' '(' ')') (test2.xsl, line 12, column 72)
$ Xalan test.xml test3.xsl
position: 1
position: 2
position: 3


> evaluation of xpath expression containing number-functions failes
> -----------------------------------------------------------------
>
>          Key: XALANC-528
>          URL: http://issues.apache.org/jira/browse/XALANC-528
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: CurrentCVS
>  Environment: SuSE Linux 9.3
>     Reporter: Axel Weiss
>  Attachments: test.xml, test1.xsl, test2.xsl, test3.xsl
>
> The evaluation of an xpath expression like
> <xsl:variable name="index" select="/test/b/[EMAIL PROTECTED]/position()"/>
> fails. Error message: XPathParserException: '{0}' is an unknown node type.
> expression = '/test/b/[EMAIL PROTECTED]/position()' Remaining tokens are:  ( 
> 'position' '(' ')')
> While very similar expressions like
> <xsl:variable name="index" select="/test/b/[EMAIL PROTECTED]/@y"/>
> or
> <xsl:variable name="index" select="position()"/>
> give correct results.
> I'll attach some simple test cases.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to