You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Axel Weiss (JIRA)" <xa...@xml.apache.org> on 2005/06/28 20:21:09 UTC
[jira] Created: (XALANC-528) evaluation of xpath expression containing number-functions failes
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/a[@x=$name]/position()"/>
fails. Error message: XPathParserException: '{0}' is an unknown node type.
expression = '/test/b/a[@x=$name]/position()' Remaining tokens are: ( 'position' '(' ')')
While very similar expressions like
<xsl:variable name="index" select="/test/b/a[@x=$name]/@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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Resolved: (XALANC-528) evaluation of xpath expression containing number-functions failes
Posted by "David Bertoni (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANC-528?page=all ]
David Bertoni resolved XALANC-528:
----------------------------------
Resolution: Invalid
The XPath 1.0 grammar limits what can appear as a step in an location path:
http://www.w3.org/TR/xpath#section-Location-Steps
In general, a function cannot appear as a step. Unfortunately, you are also tripping another Xalan-C 1.9 bug related to the substitution of tokens in error messages. This error message should read:
XPathParserException: 'position' is an unknown node type.
That bug is already fixed in the repository.
> 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/a[@x=$name]/position()"/>
> fails. Error message: XPathParserException: '{0}' is an unknown node type.
> expression = '/test/b/a[@x=$name]/position()' Remaining tokens are: ( 'position' '(' ')')
> While very similar expressions like
> <xsl:variable name="index" select="/test/b/a[@x=$name]/@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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANC-528) evaluation of xpath expression containing number-functions failes
Posted by "Axel Weiss (JIRA)" <xa...@xml.apache.org>.
[ http://issues.apache.org/jira/browse/XALANC-528?page=all ]
Axel Weiss updated XALANC-528:
------------------------------
Attachment: test.xml
> 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/a[@x=$name]/position()"/>
> fails. Error message: XPathParserException: '{0}' is an unknown node type.
> expression = '/test/b/a[@x=$name]/position()' Remaining tokens are: ( 'position' '(' ')')
> While very similar expressions like
> <xsl:variable name="index" select="/test/b/a[@x=$name]/@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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org
[jira] Updated: (XALANC-528) evaluation of xpath expression containing number-functions failes
Posted by "Axel Weiss (JIRA)" <xa...@xml.apache.org>.
[ 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/a[@x=$name]/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/a[@x=$name]/position()"/>
> fails. Error message: XPathParserException: '{0}' is an unknown node type.
> expression = '/test/b/a[@x=$name]/position()' Remaining tokens are: ( 'position' '(' ')')
> While very similar expressions like
> <xsl:variable name="index" select="/test/b/a[@x=$name]/@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: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org