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

Re: [Newbie Question] Identifying a node with a partic

Subject: Re: [Newbie Question] Identifying a node with a particularID attribute
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Wed, 31 Jul 2002 15:13:22 +0200
Re:  [Newbie Question] Identifying a node with a partic
<xsl:apply-templates select="mynode[@id = 'm2']"/>

or if you have declared the id attribute in a DTD as ID

<xsl:apply-templates select="id('m2')"/>

Regards,

Joerg

Mark Micallef wrote:
Hi all,

I have a list of identical nodes that differ by their ID:

  <mynode id="m1" image="abc.jpg"/>
  <mynode id="m2" image="def.jpg"/>

  I need to obtain the image-attribute of a node with a particular id so I
can display the image.

  This is probably very easy for all of you but I'm a complete beginner in
XSL and would appreciate your help.

Thanks :-)

Mark


--

System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


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.