Subject: Re: [xsl] parent -child From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Thu, 19 Jul 2001 12:20:14 -0400 |
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
<xsl:template match="c[.='3']"> <xsl:value-of select="../text()"/> </xsl:template>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] parent -child, srikanth | Thread | Re: [xsl] parent -child, Jeni Tennison |
Re: [xsl] hyperlink, Paul_B_Grimes | Date | RE: RES: [xsl] Namespace, Bedwell Tom |
Month |