I can't seem to make passing params to template calls work.
Well, maybe I'm even asking for too much: I want to pass not only a string to the template, but a whole tree. Does that work at all?
What I want to do is: reuse the "top-level" template (the one outputting the <html>, <body> and head/footer parts) in several other stylesheets that themselves define what's put into the central part of the page (the 'main' part).
Thanks for your help, Christian.
--- html_allexceptentry.xsl: ----------------------------------- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template name="allexceptentry"> <html> <head> <title>theaterblut.ch</title> ... </head> <body> <table ..>..... what's the right thing here?: <xsl:param name="main"/> or <xsl:copy-of select="."/> or what else? </table> </body> </html> </xsl:template> </xsl:stylesheet>
--- ordering1.xsl ----------------------------------------------- <?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="html_allexceptentry.xsl"/> <xsl:output method="html"/> <!-- predefinition? (http://www.heise.de/ix/artikel/E/2001/02/142/07.shtml) <xsl:param name="main"/> --> <xsl:template match="/"> <!-- is this the right way to specify params? --> <xsl:param name="main"> BLA <table border="0" cellspacing="10" cellpadding="0"> <xsl:apply-templates/> </table> </xsl:param> <xsl:call-template name="allexceptentry"> <xsl:with-param name="main"/> </xsl:call-template> </xsl:template> </xsl:stylesheet>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
