[xsl] additional question: FO subscript

Subject: [xsl] additional question: FO subscript
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Nov 2001 15:41:43 -0000
I have the following code:

....
<xsl:when test="contains(./row-title, 2)">
           <xsl:variable name="subscript2">
             <xsl:value-of select= "<fo:inline baseline-shift="sub"
font-size="6px">2</fo:inline>">
              </xsl:value-of>  <!--Problem here-->
           </xsl:variable>
             <xsl:for-each select="./row-title">
                <xsl:value-of select="translate(., 2, $subscript2)"/>
              </xsl:for-each>
           </xsl:when>
.........

I want to give the 'subscript of 2' a variable name so that it can be used
later:

i.e.  I want to achieve the equivalent of

<xsl:value-of select= "<fo:inline baseline-shift="sub"
font-size="6px">2</fo:inline>">
              </xsl:value-of>


But how do I include the <fo:inline> instruction within the <xsl:value-of>?

Regards

Tanz.






 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread