Subject: Re: Namespace problem, part two
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 25 Sep 2009 16:17:13 +0200
|
Trevor Nicholls wrote:
Although the comments are slightly different both yourself and Martin
suggested the same edit.
Unfortunately
----
..
<xsl:element name="{$ln}"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:attribute
namespace="http://www.w3.org/2001/XMLSchema-instance"
name="xsi:noNamespaceSchemaLocation">../../xml_utils/hcdocs.xsd</xsl:attribu
te>
..
----
results in no change to my output. The top (first) output document contains
<document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../xml_utils/hcdocs.xsd">
and any other ("included") output documents contain
<document
xsi:noNamespaceSchemaLocation="../../xml_utils/hcdocs.xsd">
That seems like a bug in Xalan to me.
I can't reproduce that with the Xalan Java 2.7.1. (note: I had to edit
the stylesheet to use xmlns:xalan="http://xml.apache.org/xalan/redirect"
for the xalan namespace).
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
|