This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl:namespace-alias in Xalan


Hi,


I have trouble using the <xsl:namespace-alias> element in Xalan; for
example:

<xsl:transform
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"

xmlns:x="mailto:julian.reschke@greenbytes.de?subject=gen-xslt-from-xdr.xslt"
	xmlns:s="urn:schemas-microsoft-com:xml-data"
	exclude-result-prefixes="s"
>

<xsl:output omit-xml-declaration="yes" indent="yes" />

<xsl:namespace-alias stylesheet-prefix="x" result-prefix="xsl"/>

<xsl:template match="/">
	<x:transform />
</xsl:template>


</xsl:transform>

gives

<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" />

both in MSXML3 and Saxon, but Xalan (C++ version) produces:

<x:transform xmlns:s="urn:schemas-microsoft-com:xml-data"/>


So,

a) exclude-result-prefixes doesn not work (and Xalan issues a warning),

b) the transform element is put into a namespace with name "x", but the
namespace is not declared.


Where can I find a list of open conformance problems for Xalan?


Julian


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]