|
Subject: xsl:apply-templates Q From: mxmodi@xxxxxxxxxxxxxxx Date: Tue, 31 Oct 2000 08:44:50 -0400 (EST) |
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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: <xsl:eval/>, Steve Muench | Thread | ANN: Napa test release, Kevin Jones |
| RE: Paging using XSLT, West, Wilson Y. | Date | ANN: Napa test release, Kevin Jones |
| Month |