[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: inline.xsl
I would like to be able to control the vertical alignment of
subscripts, however only the values such as 'sub', 'super', and
'middle' seem to work. Values such as <length> or <percentage>
generate errors. I have tried no quotes, single & double quotes to no
avail.
[ERROR] Unknown enumerated value for property 'vertical-align': "1cm"
[ERROR] Error in vertical-align property value '"1cm"':
org.apache.fop.fo.expr.PropertyException: No conversion defined
using a modified the fo/inline.xsl file :
<fo:inline xsl:use-attribute-sets="subscript.properties">
.
.
.
<xsl:choose>
<xsl:when test="$fop.extensions != 0">
<xsl:attribute name="vertical-align">"1cm"</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="baseline-shift">sub</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:copy-of select="$content"/>
</fo:inline>
</xsl:template>
Any ideas?
I would ideally like a customization layer which just accepts a
VertAlign attribute, e.g. <subscript VertAlign="3cm">, however the
following did not work.
<xsl:attribute-set name="subscript.properties">
<xsl:attribute name="font-size">60%</xsl:attribute>
<xsl:if test="@VertAlign">
<xsl:attribute name="vertical-align"><xsl:value-of
select="@VertAlign"/></xsl:attribute>
</xsl:if>
</xsl:attribute-set>
Suggestions would be appreciated.
Software : xsl 1.67.2, xml 4.4CR2, fop 0.20.5, saxon 6.5.3
Cheers, Tristan
---
Tristan J. Fiedler
Postdoctoral Fellow - Stein Lab
Cold Spring Harbor Laboratory
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]