This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: with-param and xsl:apply-templates
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: with-param and xsl:apply-templates
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 25 Oct 2000 15:43:12 +0100
- Reply-To: xsl-list at mulberrytech dot com
> Saxon, XT, and Xalan all do something other than I expect with the
> following stylesheet, which leads me to believe I've forgotten
> something about XSLT. What is it?
>
> Assuming a test document of "<doc><p>foo</p></doc>", I expect
> the xsl:message to produce "??? 1, doc, Rubble", but it produces
> "??? 0, doc, Flintstone". Why?
Because your <xsl:apply-templates/> is not invoking the relevant template
rule directly. The current node is the root, so it invokes the built-in
template rule for the root. This invokes your specific rule, which applies
to all element nodes. The built in rule passes the mode through unchanged,
but not the parameters.
Mike Kay
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list