Page 1 of 1

parent xsl

Posted: Wed Oct 13, 2004 7:25 pm
by nathasha
I have a print.xsl which includes pageController.xsl.
In page controller I want to stop some images to print, if it is beeing called from print.xsl.
How can I find out in pageController.xsl which one is calling.
Is there a way to pass a variable (parameter, attribute) from caller to pageController.xsl?

thanks,

Posted: Mon Oct 18, 2004 11:32 am
by george
Hi,

There is no way in XSLT to access the execution path to see what stylesheet(s) a template was called from.

Yes you should try passing a parameter when you call/apply templates and get it your template. Have a look at xsl:with-param and xsl:param elements.

Best Regards,
George