xsl-list
[Top] [All Lists]

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

2003-10-22 01:50:51

I think i have found, your input helped me out a bit.

I'done


<xsl:template match="* | @*">
     <xsl:copy>
          <xsl:apply-templates select="Attributes"/>
          <xsl:apply-templates select="* | @* | text()"/>
     </xsl:copy>
</xsl:template>

and it seems to work now.

Thanks !


                                                                                
                                                 
                    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



<Prev in Thread] Current Thread [Next in Thread>