This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: [docbook-apps] Rendering issues - foodnotes and qandaset
- From: Jeff Beal <jeff dot beal at ansys dot com>
- To: 'Mark Derricutt' <mark at talios dot com>, Bob Stayton <bobs at sco dot com>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 28 Apr 2003 15:31:05 -0400
- Subject: RE: [docbook-apps] Rendering issues - foodnotes and qandaset
FOP doesn't support the baseline-shift property, but it does support the
verticle-align property, which can be used to create superscripts. The
following template used to work to get the footnote marks to work: (I say
'used to' because I haven't tested it with current versions of FOP or the
XSL stylesheets. It should still work.)
<xsl:template name="format.footnote.mark">
<xsl:param name="mark" select="'?'"/>
<fo:inline vertical-align="super" font-size="90%">
<xsl:copy-of select="$mark"/>
</fo:inline>
</xsl:template>
On a related note, if you use the DocBook <superscript/> and <subscript/>
elements, the following templates will work in FOP:
<xsl:template name="inline.superscriptseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<fo:inline font-size="90%">
<fo:inline vertical-align="super">
<xsl:copy-of select="$content"/>
</fo:inline>
</fo:inline>
</xsl:template>
<xsl:template name="inline.subscriptseq">
<xsl:param name="content">
<xsl:apply-templates/>
</xsl:param>
<fo:inline font-size="90%">
<fo:inline vertical-align="sub">
<xsl:copy-of select="$content"/>
</fo:inline>
</fo:inline>
</xsl:template>
> -----Original Message-----
> From: Mark Derricutt [mailto:mark at talios dot com]
> Sent: Monday, April 28, 2003 2:55 PM
> To: Bob Stayton
> Cc: docbook-apps at lists dot oasis-open dot org
> Subject: Re: [docbook-apps] Rendering issues - foodnotes and qandaset
>
>
> On Tue, 2003-04-29 at 05:30, Bob Stayton wrote:
>
> > Unfortunately, no.
> > The current version of FOP does not support the baseline-shift
> > property, so it can't do superscript. See:
> >
> > http://xml.apache.org/fop/compliance.html#fo-property-baseline-shift
>
> Oh well - I'll see if I can reword the document to avoid using the
> footnotes for now.
>
>
> > Not sure I understand the question.
> > Is the string 'QANDAENTRY' generated by your customization
>
> Oh - my bad - no - that was just me typing to show the layout...
>
> > Do you mean you want the question on the same line
> > as the number?
>
> Yes - question on the same line as the number.
>
> Mark
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
> For additional commands, e-mail:
> docbook-apps-help at lists dot oasis-open dot org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org