Subject: Re: search condition
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Date: Wed, 06 Mar 2002 10:34:36 +0000
|
Thanks to myself.. :)
The xml file given to me was wrong. so wasnt getting the expected result.
what i did was right
laura
From: "Laura Jenkins" <xsl_list@xxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: search condition
Date: Wed, 06 Mar 2002 10:04:17 +0000
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
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail.
http://www.hotmail.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- search condition
- Laura Jenkins - Wed, 6 Mar 2002 05:01:03 -0500 (EST)
- <Possible follow-ups>
- Laura Jenkins - Wed, 6 Mar 2002 05:31:21 -0500 (EST) <=
- shenjun - Wed, 6 Mar 2002 05:32:39 -0500 (EST)
|
|