hi,
I'm desperately trying to cut a big file in small ones. I therefore need to
add the namespaces in a the root element of each created file.
Unfortunately, they are either stripped or I get an error for xmlns placed
there.
<xsl:template match="//cib:file">
<xsl:apply-templates />
<xalan:write
select="concat('cib3\','file-',position(),'-',$SourceURI)">
<cib:doc xmlns:cib="http://cib.wanadoo.fr/xmlns/cib"> <!-- root element -->
<xsl:apply-templates />
</cib:doc>
</xalan:write>
</xsl:template>
RESULT
<cib:doc>
my fragment
</cib:doc>
I've also tried with xsl:element (but xmlns:cib as an xml:attribute was not
a good idea)
I tried with simpler elements but didn't succeed.
How can I add namespace declaration to THIS ELEMENT only.
Thanks for any answer.
Fran�ois