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 &lt;= $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

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -