xsl-list
[Top] [All Lists]

Re: [xsl] Namespace problem, part two

2009-09-25 09:34:05
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>