xsl-list
[Top] [All Lists]

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

2010-09-02 10:15:33
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>