Tempore 16:52:03, die 02/08/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Sian Mace <sianmace(_at_)hotmail(_dot_)com>:
You can see that the ASIN is copying the first one in the iteration each
time, and not the correct one for example Jims ASIN wich is 54321!!
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="/Tests/Test/Attributes">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<asin><xsl:value-of select="../ASIN"/></asin>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
don't use absolute paths (starting with '/') unless you're really need
them.
regards,
--
Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Gaudiam omnibus traderat W3C, nec vana fides
--~------------------------------------------------------------------
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>
--~--