[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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)
kevin pollington
<xsl:template match="Dates/Weeks">
	<xsl:apply-templates/>
</xsl:template>

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

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

Is one way. Depends what you need to do.

all the best
Lee

 -----Original Message-----
 From: mxmodi@xxxxxxxxxxxxxxx [mailto:mxmodi@xxxxxxxxxxxxxxx]
 Sent: 31 October 2000 12:45
 To: xsl-list@xxxxxxxxxxxxxxxx
 Subject: xsl:apply-templates Q
 
 
 Hi,
 
 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:
 
 <data>
  <Dates>
   <Date>
      <Weeks>
           <Week>some value...</Week>
           <Date>some value...</Date>
      </Weeks>
   </Date>
  </Dates>
 </data>
 
 My XSL snippet is:
 
 <xsl:template match="/">
 
 some testing...and tables...
 
 <xsl:apply-templates select="//Date" />
 </xsl:template>
 
 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.
 
 Maulik
 
 
 
 
  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
 




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.