You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by xa...@xml.apache.org on 2004/09/23 17:56:32 UTC
[jira] Commented: (XALANJ-1952) OASIS test case BVTs_bvt054 failure
The following comment has been added to this issue:
Author: Morris Kwan
Created: Thu, 23 Sep 2004 8:55 AM
Body:
In line 11 of the sample stylesheet, "xmlns" is used as the namespace prefix:
<xsl:attribute name="xmlns:bar" namespace=""></xsl:attribute>
According to the XSLT 1.0 spec, section 7.1.3:
The name attribute is interpreted as an attribute value template. It is an error if the string that results from instantiating the attribute value template is not a QName or is the string xmlns. An XSLT processor may signal the error; if it does not signal the error, it must recover by not adding the attribute to the result tree.
Xalan treats this as an error and throw a TranformerException. Libxslt2 chooses to recover by not adding the attribute to the result tree. Both behaviors are correct according to the spec. Here the error message from Xalan is a little misleading though. If you are complaining about this, we can try to emit a better message.
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/XALANJ-1952?page=comments#action_53362
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/XALANJ-1952
Here is an overview of the issue:
---------------------------------------------------------------------
Key: XALANJ-1952
Summary: OASIS test case BVTs_bvt054 failure
Type: Bug
Status: Unassigned
Priority: Major
Project: XalanJ2
Assignee:
Reporter: elharo
Created: Sun, 19 Sep 2004 5:17 PM
Updated: Thu, 23 Sep 2004 8:55 AM
Description:
Libxslt handles this one and generates the expected output.
java -Xbootclasspath/p:/opt/xalan-j_2_6_0/bin/xalan.jar -classpath /opt/xalan-j_2_6_0/bin/xalansamples.jar:/opt/xalan-j_2_6_0/bin/xercesImpl.jar org.apache.xalan.xslt.Process -IN data.xml -XSL name.xsl
file:///Users/elharo/Projects/XOM/data/oasis-xslt-testsuite/TESTS/MSFT_Conformance_Tests/BVTs/name.xsl; Line #11; Column #54; XSLT Error (javax.xml.transform.TransformerException): Attempting to generate a namespace prefix with a null URI
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report 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