Re: [xsl] Moving (promoting) XML elements through XSL

Subject: Re: [xsl] Moving (promoting) XML elements through XSL
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 30 Jun 2006 14:31:46 +0100
>>        <xsl:template match="//topic">
>                             ^^^^
>
>  BTW, this is never needed in a pattern.  Just write "topic".

In XSLT1 it's never needed, in XSLT2 the same is probably true although
it does match different elements in that case.

match="//topic" 

would not match a an element in a tree that was rooted at an element
node rather than a document node.

David

Current Thread