[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Réf . : RE: [ xsl ] XML tags to XML attributes with X

Subject: Réf . : RE: [ xsl ] XML tags to XML attributes with XSL
From: lbertin@xxxxxxxxxxxx
Date: Wed, 22 Oct 2003 10:41:00 +0200
lbertin
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.