Subject: RE: [xsl] get variable value in another template From: cknell@xxxxxxxxxx Date: Tue, 27 Dec 2005 11:46:43 -0500 |
Did you get an answer to this? -- Charles Knell cknell@xxxxxxxxxx - email
-----Original Message----- From: T Uma Shankari <umashankari@xxxxxxxxxxxxxxxxxxxx> Sent: Mon, 26 Dec 2005 16:34:07 +0530 (IST) To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: [xsl] get variable value in another template
<xsl:template name="globalsubReplace"> <xsl:param name="outputString"/> <xsl:param name="target"/> <xsl:param name="replacement"/> <xsl:variable name="outputString12"> <xsl:choose> <xsl:when test="contains($outputString,$target)"> <xsl:value-of select="concat(substring-before($outputString,$target),$replacement)"/> <xsl:call-template name="globalsubReplace"> <xsl:with-param name="outputString" select="substring-after($outputString,$target)"/> <xsl:with-param name="target" select="$target"/> <xsl:with-param name="replacement" select="$replacement"/> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$outputString"/> </xsl:otherwise> </xsl:choose> </xsl:variable> <!-- <xsl:value-of select="$outputString12"/>--> </xsl:template>
<xsl:template match="opt"> <xsl:call-template name="globalsubReplace"> <xsl:with-param name="outputString" select="."/> <xsl:with-param name="target" select="'{sub}'"/> <xsl:with-param name="replacement" select="'<sub>'"/> </xsl:call-template> <xsl:call-template name="globalsubclose"> <xsl:with-param name="outputString12" select="."/> <xsl:with-param name="target1" select="'{/sub}'"/> <xsl:with-param name="replacement1" select="'</sub>'"/> </xsl:call-template> </xsl:template>
thanks in advance uma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] get variable value in another, T Uma Shankari | Thread | RE: [xsl] get variable value in ano, T Uma Shankari |
Re: [xsl] FO: center a table, G. Ken Holman | Date | RE: [xsl] FO: center a table, Florent Georges |
Month |