[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] [XSL] Problem with selecting nodes


Subject: Re: [xsl] [XSL] Problem with selecting nodes
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 02 Sep 2010 17:15:17 +0200

Etheridge, Stephen wrote:

<xsl:template match = "/MIS_Report/Records/XXXRecord/XXXRecordDetails/XXXRecordVersion">
	Some XSLT that seems to work
	.....
	<RecordHeader>
	More XSLT that seems to work
	</RecordHeader>
	<xsl:apply-templates select="//RecordVersion" mode="Copy" />

This is processing all RecordVersion descendants that can be reached from the root node. If you want to process the RecordVersion descendants of the XXXRecordVersion element the template is matching then you need
select=".//RecordVersion"
or
select="descendant::RecordVersion"




--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/


Current Thread
Keywords