Subject: [xsl] Re: [Newbie Question] Identifying a node with a particular ID attribute From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Wed, 31 Jul 2002 06:18:30 -0700 (PDT) |
> 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. mynode[@id=$someValue]/@image will return all "image" attributes of all children nodes named "mynode", whose "id" attribute has the value of $someValue. ===== Cheers, Dimitre Novatchev. http://fxsl.sourceforge.net/ -- the home of FXSL __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Ann: Upcoming XSL training in, G. Ken Holman | Thread | [xsl] ID(), Mark Micallef |
Re: [xsl] [Newbie Question] Identif, Joerg Heinicke | Date | Re: [xsl] [Newbie Question] Identif, James Fuller |
Month |