XSL-Transformation of XML-Element with Namespace

S

schaf

Hello NG!
I would like to transform a XML-File into an new XML-File with
additional information. That's no problem, but my source XML-File has a
root element with a xmlns definition. Like this

<Header xmlns="http://www.myHeader.ch/TestHeadrer">

If i would like to copy this tag, with the following xsl-code, nothing
is working:

<xsl:template match="Header">
<xsl:copy/>
</xsl:template>

If i delete the namespace definition in the XML-Header tag, it works.
But what do I have to do, that my XSL-File knows the Header-Tag and the
namespace ?

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top