Re: [xsl] XML Elements to XML Attributes

Subject: Re: [xsl] XML Elements to XML Attributes
From: "Mathieu Malaterre" <mathieu.malaterre@xxxxxxxxx>
Date: Sun, 14 Jan 2007 19:27:42 -0500
On 1/14/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
Using a for-each and testing position() seems clumsy, compared with explicit
indexing.

What's wrong with

nothing simply that I started XSLT last week ;)


<entry tag="{td[1]}" attribute="{td[2]}" type="{td[3]}"
description="{td[4]}"/>

love that ! w3schools did not have such example.


Not coming from a C/C++ world, I can't see why you would want to use
variables.

Ordered XSLT Cookbook yesterday, so I'l dive into more advance examples than just the xsl:for-each and xsl:variable example I read so far...

thanks,
-M

Current Thread