Hello to all XSL gurus,

I have the following XML tree :
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE LIB [

<!ELEMENT LIB (ELT*)>
<!ATTLIST LIB count CDATA #IMPLIED>
<!ATTLIST LIB xmlns:BB CDATA #FIXED 'http://ftrd/BB'>
<!ELEMENT ELT   ANY>
<!ATTLIST ELT ref       ID #REQUIRED>
]>

<LIB count="" xmlns:BB="http://ftrd/BB"; res_link="../../">
    <ELT ref="XHTM.c.assistant.title.head">
            <title>Hello My Title</title>
    </ELT>
</LIB>

and the following XSL transformation in my stylesheet :

<xsl:copy-of select="id('XHTM.c.assistant.title.head')/*"/>

It works correctly with Xalan J2.1.0 but how can I say Xalan not to put the
namespace BB in the output file because the output looks like this :

<title xmlns:BB="http://ftrd/BB";>Hello My Title</title>


In my XSL, I use the following output directives : 
<xsl:output indent="yes" method="html" encoding="ISO-8859-1"/>
<xsl:strip-space elements="*"/>
<xsl:template match="text()"></xsl:template>
 
Thanks.

Vincent

 

Reply via email to