parent xsl

Having trouble installing Oxygen? Got a bug to report? Post it all here.
nathasha

parent xsl

Post 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,
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Post Reply