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

RE: apply templates with with-param on Xalan

Subject: RE: apply templates with with-param on Xalan
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 25 Jul 2000 13:30:12 +0100
xalan builtin templates
> So now Im unsure how to proceede.  I still dont understand 
> why the parameter is not set up, even though (it seems) the 
> list root element has been correctly matched.  But when I add 
> the /list to the document() call, the parameter is correctly set up. 

The document() function returns a root node (don't confuse this with the
outermost element node, which is sometimes referred to as the root element
or document element). So the call on xsl:apply-templates will result in the
template for the root node being called, with parameters. You've provided no
explicit template for the root node, so the built-in template gets called.
The built-in template does a call on <xsl:apply-templates/> for its
children, i.e. for the <list> element, but without supplying any parameters.
So your match="list" template rule gets called without parameters.

To get the parameters through, you either have to bypass processing the root
node, or you have to process it using a template that passes the parameters
on.

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.