Subject: Re: Pattern "node()" and document nodes
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Thu, 25 Feb 2010 18:48:30 +0000 (GMT)
|
Dimitre Novatchev wrote:
> No, because, there is no way to issue
<xsl:apply-templates/>
> that would process a document node
Well, without
@select that's true, but:
<xsl:variable name="doc">
<root/>
</xsl:variable>
<xsl:apply-templates select="$doc"/>
Anyway,
xsl:apply-templates is not the only way to apply rules
to a node. Most of my
transforms actually apply rules to a
document node: the transform itself, with
an source document, is
defined as the result of applying the rule to the
document node
for this source ;-)
Regards,
--
Florent Georges
http://www.fgeorges.org/
|