This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: ***********Transformation of an XML document containing a default namespace ************
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] ***********Transformation of an XML document containing a default namespace ************
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- Date: Wed, 24 Oct 2001 10:12:01 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
>I really don't understand this !
Neither do I. That stylesheet is not valid because you haven't declared
the test namespace. Try this.
<xsl:stylesheet version="1.0" xmlns="http://www.e-xmlmedia.com/test/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:test="http://www.e-xmlmedia.com/test/"
exclude-result-prefixes="test"
>
<xsl:template match="test:element">
<ELEMENT xmlns="http://www.e-xmlmedia.com/test/">
<xsl:apply-templates />
</ELEMENT>
</xsl:template>
<xsl:template match="test:titi">
<TITI>
<xsl:value-of select="." />
</TITI>
</xsl:template>
<xsl:template match="test:toto">
<TOTO>
<xsl:value-of select="." />
</TOTO>
</xsl:template>
<xsl:template match="test:tata">
<TATA>
<xsl:value-of select="." />
</TATA>
</xsl:template>
</xsl:stylesheet>
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list