[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: with-param and xsl:apply-templates

Subject: RE: with-param and xsl:apply-templates
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 25 Oct 2000 15:43:12 +0100
xsl apply templa
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.