xsl-list
[Top] [All Lists]

Re: xsl transform

2005-06-28 07:33:35
Tempore 15:58:19, die 06/28/2005 AD, hinc in xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Philippe LAPLANCHE <philippe(_dot_)laplanche(_at_)horus-si(_dot_)com>:

<xsl:template match="row"> (this I don't know how to make it work)
        <e>
                <xsl:for-each select="*">
                        <xsl:attribute name="????">
                                <xsl:value-of select="."/>
                        </xsl:attribute>
                </xsl:for-each>
        </e>
</xsl:template>

Trythis one:

<xsl:template match="row"> (this I don't know how to make it work)
<e>
        <xsl:for-each select="*">
<xsl:variable name="count"><xsl:number format="a" value="position()"/></xsl:variable>
                <xsl:attribute name="{$count}">
                        <xsl:value-of select="."/>
                </xsl:attribute>
        </xsl:for-each>
</e>
</xsl:template>

regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
"Φιλήκοον ειναι μαλλον η φιλόλαλον"  - Κλεόβουλος

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



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