Subject: [xsl] Réf. : RE: [xsl] XML tags to XML attributes with XSL From: lbertin@xxxxxxxxxxxx Date: Wed, 22 Oct 2003 10:41:00 +0200 |
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.Elovirta@xxxxxxxxx Envoyé par : Pour : <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> owner-xsl-list@xxxxxxxxxxxx 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XML tags to XML attribute, Jarno . Elovirta | Thread | [xsl] Réf. : RE: [xsl] XML tags to , lbertin |
RE: [xsl] XML tags to XML attribute, Jarno . Elovirta | Date | [xsl] Réf. : RE: [xsl] XML tags to , lbertin |
Month |