This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: parent -child
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] parent -child
- From: Heather Lindsay <heather dot lindsay at Trifolium dot com>
- Date: Thu, 19 Jul 2001 11:36:16 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:template match="b">
<xsl:if test="c = 3">
<xsl:value-of select="."/>
</xsl:if>
</xsl:template>
Is this what you are looking for?
- Heather
-----Original Message-----
From: srikanth [mailto:srik23@yahoo.com]
Sent: Thursday, July 19, 2001 11:14 AM
To: XSL-List@lists.mulberrytech.com
Subject: [xsl] parent -child
Hi,
How do i read the value of the child element and print
the value of the parent element
xml:
<a>1
<b>2
<c>3</c>
<d>4</d>
</b>
</a>
I need to check for the value of [c=3] and print 2
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list