Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
Can i refer one xslt inside another xslt.
If yes then how ?
You can use <xsl:include href="URI"/>inside an xslt.
Example:
<xsl:include href="example.xslt"/>
I want to show the xslt inside another xslt ......just dont want to include.
You want to render some xslt template within another or what do you mean by show the xslt inside another xslt?
yes i want to render one xslt template inside another xslt ......i want to do so some thing like this....
<div>
some codes in xslt
<another xslt>
</div>
Maybe the RenderMacroContent extension can help : http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent
Something like this?
<xsl:include href="box.xslt"/><xsl:output method="xml" omit-xml-declaration="yes"/><xsl:template match="/"> <xsl:variable name="boxes" select="$currentPage/* [@isDoc]" /> <!--<xsl:copy-of select="$boxes" />--> <xsl:for-each select="$boxes"> <xsl:call-template name="Box"> <xsl:with-param name="node" select="."></xsl:with-param> </xsl:call-template> </xsl:for-each></xsl:template>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
xslt in xslt
Hi,
Can i refer one xslt inside another xslt.
If yes then how ?
You can use <xsl:include href="URI"/>inside an xslt.
Example:
<xsl:include href="example.xslt"/>
Hi,
I want to show the xslt inside another xslt ......just dont want to include.
You want to render some xslt template within another or what do you mean by show the xslt inside another xslt?
yes i want to render one xslt template inside another xslt ......i want to do so some thing like this....
<div>
some codes in xslt
<another xslt>
</div>
Maybe the RenderMacroContent extension can help : http://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/RenderMacroContent
Something like this?
<xsl:include href="box.xslt"/>
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:variable name="boxes" select="$currentPage/* [@isDoc]" />
<!--<xsl:copy-of select="$boxes" />-->
<xsl:for-each select="$boxes">
<xsl:call-template name="Box">
<xsl:with-param name="node" select="."></xsl:with-param>
</xsl:call-template>
</xsl:for-each>
</xsl:template>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.