[xml] libxslt (second to latyest version) is too aggressive about namespace aliasing
- From: Elliotte Rusty Harold <elharo metalab unc edu>
- To: xml gnome org
- Subject: [xml] libxslt (second to latyest version) is too aggressive about namespace aliasing
- Date: Thu, 25 Mar 2004 15:35:15 -0500
See http://issues.apache.org/bugzilla/show_bug.cgi?id=27935 for
details of bug. Xerces and libxslt are treating namespace-alias of
elements created by xsl:element differently. I initially thought that
libxslt was correct and Xerces2-J incorrect so I reported it as a bug
over there. However, Henry Zongaro makes a convincing argument that
Xerces is in fact correct and libxslt incorrect.
elharo stallion namespace]$ java -classpath
/opt/xml/xalan-j_2_6_0/bin/xalansamples.jar:/opt/xml/xalan-j_2_6_0/bin/xercesImpl.jar:/opt/xml/xalan-j_2_6_0/bin/xalan.jar
org.apache.xalan.xslt.Process -IN namespace24.xml -XSL namespace24.xsl
<?xml version="1.0" encoding="UTF-8"?>
<axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/TransAlias"
version="1.0">
<axsl:template xmlns:axsl="http://www.w3.org/1999/XSL/Transform"
match="h1"><axsl:apply-templates/></axsl:template>
</axsl:stylesheet>
[elharo stallion namespace]$ xsltproc namespace24.xsl namespace24.xml
<?xml version="1.0"?>
<axsl:stylesheet xmlns:axsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<axsl:template match="h1"><axsl:apply-templates/></axsl:template>
</axsl:stylesheet>
--
Elliotte Rusty Harold
elharo metalab unc edu
Effective XML (Addison-Wesley, 2003)
http://www.cafeconleche.org/books/effectivexml
http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]