Subject: Re: [xsl] trouble forming xpath expression with compound conditions From: Jörg Heinicke <joerg.heinicke@xxxxxx> Date: Thu, 04 Oct 2001 18:04:32 +0200 |
With the xml given below, the context node it <items>. I want to select the <item> elemesnt for which the attribute @id='3' and <si> content is SI7 (this would be the second <item> instance)? The desired attribute value would be stored in a variable $myid and the desired content would be stored in a variable $mysi. Anyone know how to form the xpath expression within <xsl-value-of select="xpath expression"/>?
<items> <item> <si id="1">SI1</si> <si id="2">SI2</si> <si id="3">SI3</si> <si id="4">SI4</si> </item> <item> <si id="1">SI5</si> <si id="2">SI6</si> <si id="3">SI7</si> <si id="4">SI8</si> </item> <items>
System Development VIRBUS AG Fon +49(0)341-979-7435 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] trouble forming xpath express, Steve Renshaw | Thread | Re: [xsl] trouble forming xpath exp, David Carlisle |
RE: [xsl] RE: apply-templates and e, Zwetselaar M. van (M | Date | RE: [xsl] Beginner's question, J S Publications |
Month |