Subject: RE: with-param and xsl:apply-templates From: Kay Michael <Michael.Kay@xxxxxxx> Date: Wed, 25 Oct 2000 15:43:12 +0100 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Summing over nodes belonging to, Parker, Daniel | Thread | RE: with-param and xsl:apply-templa, Sebastian Rahtz |
Re: xsl:with-param and xsl:apply-te, Sebastian Rahtz | Date | RE: Using XSLT to search XML, Kay Michael |
Month |