RE: apply-templates Q

Subject: RE: apply-templates Q
From: "Pollington, Lee (ELSLON)" <lee.pollington@xxxxxxxxxxxxx>
Date: Wed, 1 Nov 2000 10:03:00 -0400 (EST)
<xsl:template match="Dates/Weeks">

<xsl:template match="Week">
	<xsl:value-of select="."/>

<xsl:template match="Weeks/Date"/>

Is one way. Depends what you need to do.

all the best

 -----Original Message-----
 From: mxmodi@xxxxxxxxxxxxxxx [mailto:mxmodi@xxxxxxxxxxxxxxx]
 Sent: 31 October 2000 12:45
 To: xsl-list@xxxxxxxxxxxxxxxx
 Subject: xsl:apply-templates Q
 I have a very simple Q on xsl:apply-templates. I have gone 
 through the FAQ
 but could not find it and probably its just how I am looking 
 it up. Anyway,
 here is the problem.
 My XML is as follows:
           <Week>some value...</Week>
           <Date>some value...</Date>
 My XSL snippet is:
 <xsl:template match="/">
 some testing...and tables...
 <xsl:apply-templates select="//Date" />
 I want the <xsl:apply-templates> to only select the main 
 <Date> element and
 not the <Date> element within the <Weeks> node.  Unfortunately 
 I have no
 control over the XML file. Any help is appreciated.
  XSL-List info and archive:

 XSL-List info and archive:

Current Thread