RE: [xsl] new user xslt

Subject: RE: [xsl] new user xslt
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Fri, 26 Apr 2002 08:57:03 +0100
<xsl:template match="row">
  <xsl:element name="{cell[1]}">
    <xsl:value-of select="cell[2]"/>
  </xsl:element>
</xsl:template>

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of 
> CHAOUI Hassan
> Sent: 26 April 2002 08:11
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: [xsl] new user xslt
> 
> 
> Hello,
> I'm quite  a new user of this mailing list.
> In my input xml file, I have this structure:
> 
> <table>
>    <row>
>      <cell>
> 	x1
>      </cell>
>      <cell>
> 	y1
>      </cell>
>    </row>
>    <row>
>      <cell>
> 	x2
>      </cell>
>      <cell>
> 	y2
>      </cell>
>    </row>
> </table>
> and I want to transform it to a new xml file witch have this 
> structure:
> 
> <table>
>    <x1>
>      y1
>    </x1>
>    <x2>
>      y2
>    </x2>
> </table>
> 
> thank you for your help.
> 
> 
> 
> +----------------------------------------------------------------+
> | Ce courrier ainsi que les fichiers joints sont confidentiels.  |
> | Si vous avez recu ce courrier par erreur, veuillez en informer |
> | l'administrateur du systeme : exp-iris@xxxxxxxxx               |
> |                          ---------                             |
> | Ce message confirme que le courrier a passe le controle        |
> | antivirus du relais de messagerie Internet avec succes.        |
> +----------------------------------------------------------------+
> 
> 
>  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