I am trying to basically recreate the functionality of the ASP.NET main page using the XSLT template.
I have a master page template that contains most of the html page stored in the .xslt file. I have another .xslt file specific to one page that accepts xml representing page data. I want to call the master page template from my new template and still be able to insert my own xml to be applied. If I could pass in a parameter that would allow me to call a template with the parameter as a name, this could do the trick, but this does not seem to be allowed.
I basically have this:
<xsl:template name="MainMasterPage">
<xsl:with-param name="Content1"/>
<html>
<xsl:value-of select="$Content1"/>
</html>
</xsl:template>
And this:
<xsl:template match="/">
<xsl:call-template name="MainMasterPage">
<xsl:with-param name="Content1">
<h1>Title</h1>
<p>More Content</p>
<xsl:call-template name="SomeOtherTemplate"/>
</xsl:with-param>
</xsl-call-template>
</xsl:template>
, , xml , , , "TitleMore Content"