Subject: Re: [xsl] search condition From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 06 Mar 2002 11:36:58 +0100 |
Dear people, forgive me if my question is very basic.
i want to search the element textid which has a text = 'ABC'
can i acheive this by the for-each condition
<xsl:for-each select="//root/children/textid[.='ABC']">
xml structure being
<root> <children> <textid>ABC</textid> </children> <children> <textid>DEF</textid> </children> <children> <textid>ABC</textid> </children> <children> <textid>FGH</textid> </children> <children> <textid>ABC</textid> </children> </root>
please correct me if i am wrong i am writing the xsl like below
<xsl:for-each select="//root/children/textid[.='ABC']"> <!-- to print the text --> <xsl:value-of select="."/> </xsl:for-each>
many thanks in advance laura
System Development VIRBUS AG Fon +49(0)341-979-7411 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] search condition, Laura Jenkins | Thread | RE: [xsl] search condition, Michael Kay |
Re: [xsl] search condition, Laura Jenkins | Date | [xsl] XPath perfomance in attribute, Arjé Cahn |
Month |