Re: [xsl] Namespace problem, part two

Subject: Re: [xsl] Namespace problem, part two
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Fri, 25 Sep 2009 15:33:37 +0200
Trevor Nicholls wrote:

    <xsl:attribute
name="xsi:noNamespaceSchemaLocation">../../xml_utils/hcdocs.xsd</xsl:attribu
te>


When the save stylesheet is run, the first (outer) document is created
correctly, but the second (inner) document (qa.xml) lacks the xmlns:xsi
(namespace) node:

(qa.xml as created):
----
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="../../xml_utils/hcdoc2html.xsl" type="text/xsl"?>
<document xsi:noNamespaceSchemaLocation="../../xml_utils/hcdocs.xsd"

That is an odd output as it would not be well-formed.
Does it fix things if you use
<xsl:attribute name="xsi:noNamespaceSchemaLocation" namespace="http://www.w3.org/2001/XMLSchema-instance";>../../xml_utils/hcdocs.xsd</xsl:attribute>
?


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread