Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • vaibhav 119 posts 139 karma points
    May 12, 2011 @ 13:46
    vaibhav
    0

    xslt in xslt

    Hi,

    Can i refer one xslt inside another xslt.

    If yes then how ?

  • Anders Burla 2560 posts 8256 karma points
    May 12, 2011 @ 13:49
    Anders Burla
    0

    You can use <xsl:include href="URI"/>inside an xslt.

    Example:

    <xsl:include href="example.xslt"/>

  • vaibhav 119 posts 139 karma points
    May 12, 2011 @ 15:28
    vaibhav
    0

    Hi,

    I want to show the xslt inside another xslt ......just dont want to include.

  • Anders Burla 2560 posts 8256 karma points
    May 12, 2011 @ 15:34
    Anders Burla
    0

    You want to render some xslt template within another or what do you mean by show the xslt inside another xslt?

  • vaibhav 119 posts 139 karma points
    May 12, 2011 @ 15:44
    vaibhav
    0

    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>

  • Profiterole 232 posts 264 karma points
    May 12, 2011 @ 16:12
    Profiterole
    0
  • Anders Burla 2560 posts 8256 karma points
    May 12, 2011 @ 16:13
    Anders Burla
    0

    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>

Please Sign in or register to post replies

Write your reply to:

Draft