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

RE: Simple problem??

Subject: RE: Simple problem??
From: "Pollington, Lee (ELSLON)" <lee.pollington@xxxxxxxxxxxxx>
Date: Mon, 16 Oct 2000 16:17:34 +0100
name id xsl
Ooops sorry Tomas, Mike is right obviously.

Lee

 -----Original Message-----
 From: Kay Michael [mailto:Michael.Kay@xxxxxxx]
 Sent: 16 October 2000 13:52
 To: 'xsl-list@xxxxxxxxxxxxxxxx'
 Subject: RE: Simple problem??
 
 
 <xsl:template match="name">
 <name><xsl:value-of select="//product[@ID=current()/@ID]"/></name>
 </xsl;template>
 
 For greater efficiency, use id() or key().
 
 Mike Kay
 
 > -----Original Message-----
 > From: Tomas Aspelin (SIX) [mailto:tomas.aspelin@xxxxxx]
 > Sent: 17 October 2000 01:01
 > To: Xsl-Listan
 > Subject: Simple problem??
 > 
 > 
 > Hi everyone
 > 
 > I have a small problem that i need help with. I want to select 
 > the content of an element with a specified id and move it to 
 > another element with the same id. Can someone tell me how to 
 > do this?
 > 
 > My XML looks something like this.
 > 
 > <products>
 >    <product ID="1">prod_one</product>
 >    <product ID="2">prod_two</product>
 >    <product ID="3">prod_three</product>
 >    <product ID="4">prod_four</product>
 > </products> 
 > 
 > ...
 > 
 > <content>
 >    <name ID="1"><name>
 >    <name ID="2"><name>
 >    <name ID="3"><name>
 >    <name ID="4"><name>
 > </content>
 > 
 > So, I want to copy the name of <product> "prod_one" with id="1" to 
 > the element <name> in <content> that has the same id as the product. 
 > 
 > Thanx
 > 
 > 
 >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
 > 
 
 
  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.