[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|