This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

additional question: FO subscript


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]