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

Re: xsl:with-param

Subject: Re: xsl:with-param
From: James Cummings <James.Cummings@xxxxxxxxx>
Date: Mon, 16 Jun 2003 11:13:58 +0100 (BST)
 Re: xsl:with-param
>From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx>
>Subject:  Re: xsl:with-param

<snip/>
>In case "body" is not the top element (the child of "/"), probably a
>template that was instantiated for one of its ancestors didn't have an
>xsl:param named "wit".
>
>Then "the chain is broken" ... this template cannot pass a parameter it
>doesn't know about.

Yup! This is exactly what the problem was.  (Mainly the difference
between '/' and the top element 'foo' in this case.) Made sure each
element down the tree passes on the value of the param and it now
works perfectly.

>You haven't shown us the sml.source and the other templates that are part of
>the transformation, so one can only provide a guess of what is the exact
>reason for the reported behaviour.

You guessed correctly.   Me having a *doh* moment, of course each
apply-templates has to pass the param on from the very top down. *doh*

Many thanks Dimitre,

-James





 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.