xml - how to change the value of the param name in xslt? -
this xslt template part:here want change scope in index value.how it?
<xsl:template match="//w:body/w:sdt/w:sdtcontent/w:p/child::* "> <xsl:param name = "scope"/> <xsl:variable name="index" select="count(preceding-sibling::*)"/> <xsl:if test = "$index <= $scope"> <paragraph> <xsl:attribute name="index"> <xsl:value-of select="$index"/> </xsl:attribute> <xsl:attribute name="toc">true</xsl:attribute> <xsl:apply-templates select=".//w:t"/> </paragraph> </xsl:if> </xsl:template>
plz guide me this...
you can't re-assign parameter. want this? there way round it.
Comments
Post a Comment