You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2002/11/13 17:46:57 UTC
DO NOT REPLY [Bug 14511] New: -
Incorrect node test for
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14511>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14511
Incorrect node test for <xsl:number from="../page"/>
Summary: Incorrect node test for <xsl:number from="../page"/>
Product: XalanJ2
Version: CurrentCVS
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Normal
Priority: Other
Component: org.apache.xpath
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: Wolfram.Eisert@dresdner-bank.com
When using the <xsl:number/> tag with a "from"-attribute in current
CVS, it is not allowed to use relative paths.
But in my opinion this should be allowed regarding the spec.
When apply the appended stylesheet I get the following error:
SystemId Unknown; Line #4; Column #57; XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
javax.xml.transform.TransformerException: A node test that matches either
NCName:* or QName was expected.
Stylesheet:
-----------
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/page">
<number><xsl:number level="any" from="../page"/></number>
</xsl:template>
</xsl:stylesheet>