xsl-list
[Top] [All Lists]

unwanted xmlns="" attribute

2004-10-01 07:47:16
In my including file I have:

<xsl:template match="test">
<rdf:RDF xmlns="http://purl.org/rss/1.0/"; xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; xmlns:dc="http://purl.org/dc/elements/1.1/";>
                <xsl:apply-templates select="." mode="testy"/>
        </rdf:RDF>
</xsl:template>

In my included file I have:

<xsl:template match="test" mode="testy">
        <help/>
</xsl:template>

My output comes out as:

<rdf:RDF xmlns="http://purl.org/rss/1.0/"; xmlns:dc="http://purl.org/dc/elements/1.1/"; xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
        <help xmlns=""/>
</rdf:RDF>


I do not want the xmlns="" attribute to appear on the help element. I have tried numerous permutations using the exclude-result-prefixes on xsl:stylesheet to no avail. I am using MSXML 3. Can anyone advise?

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo



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