This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
SV: apply-templates Q
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: SV: apply-templates Q
- From: Jonas Nordström <Jonas dot Nordstrom at ei dot sigma dot se>
- Date: Wed, 1 Nov 2000 10:00:13 -0400 (EST)
- Reply-To: xsl-list at mulberrytech dot com
Change your <xsl-apply-templates...> to:
<xsl:apply-templates select="data/Dates/Date" />
/Jonas Nordstrom
Sigma Exallon Information AB
-----Ursprungligt meddelande-----
Från: mxmodi@duke-energy.com [mailto:mxmodi@duke-energy.com]
Skickat: Tuesday, October 31, 2000 1:45 PM
Till: xsl-list@mulberrytech.com
Ämne: 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