Andrew Franz wrote:
Hi
<xsl:template match="td" />
<xsl:template match="td[(position() mod 4) = 0]">
<entry tag="{.}"
attribute="{following-sibling::td[1]}"
type="{following-sibling::td[2]}"
description="{following-sibling::td[3]}" />
</xsl:template>
This is not the same thing as the OP's code. That will result in an
error if there is more than 4 td elements, because that will generate
two attributes with the same name in the same element.
I'd just say, in the same context as the OP's code:
<entry
tag="{ td[1] }"
attribute="{ td[2] }"
type="{ td[3] }"
description="{ td[4] }"/>
Regards,
--drkm
___________________________________________________________________________
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions !
Profitez des connaissances, des opinions et des expériences des internautes sur
Yahoo! Questions/Réponses
http://fr.answers.yahoo.com
--~------------------------------------------------------------------
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>
--~--