xsl-list
[Top] [All Lists]

Re: [xsl] Pattern "node()" and document nodes

2010-02-25 12:49:00
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/


      


--~------------------------------------------------------------------
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>
--~--