[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem Copying an element, always getting first i

Subject: Re: Problem Copying an element, always getting first in the list
From: "Joris Gillis" <roac@xxxxxxxxxx>
Date: Tue, 08 Feb 2005 17:04:35 +0100
Re:  Problem Copying an element
Tempore 16:52:03, die 02/08/2005 AD, hinc in xsl-list@xxxxxxxxxxxxxxxxxxxxxx scripsit Sian Mace <sianmace@xxxxxxxxxxx>:

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:apply-templates select="@*|node()"/>

<xsl:template match="/Tests/Test/Attributes">
           <xsl:apply-templates select="@*|node()"/>
       <asin><xsl:value-of select="../ASIN"/></asin>


don't use absolute paths (starting with '/') unless you're really need them.

Joris Gillis (http://www.ticalc.org/cgi-bin/acct-view.cgi?userid=38041)
Gaudiam omnibus traderat W3C, nec vana fides

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.