Hello,
Thanks for the answer but it does not work. I get
<?xml version="1.0" encoding="ISO-8859-1"?>
<Message id="14245">
14245ACCEPTTASKSbertin15/10/2003
<Process name="ACCEPTTASKS" userid="bertin" dateemission="15/10/2003"
id2="4321">
<Task id="1243"/>
</Process>
</Message>
which is kind of strange. Attributes are passed to the child and it prints
their value
in the node text (which i do not want).
Any idea why ?
Thanks !
Laurent Bertin
Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com
Envoyé par : Pour :
<xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
owner-xsl-list(_at_)lists(_dot_)mulber cc :
rytech.com Objet : RE: [xsl]
XML tags to XML attributes with XSL
22/10/2003 10:25
Veuillez répondre à
xsl-list
Hi,
<xsl:template match="*">
<xsl:copy>
Add <xsl:copy-of select="@*"/>
<xsl:apply-templates select="Attributes"/>
<xsl:apply-templates select="* | text()"/>
</xsl:copy>
</xsl:template>
Cheers,
Jarno - Madam Zu: August 2003 Part 1
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list