Next in thread →
Next in month →
Re: [docbook-apps] Trying to get product number to appear on title page
Maybe something like this? <fo:block text-align="left" font-size="10pt" font-weight="bold"> <xsl:text>Version </xsl:text> <xsl:apply-templates select="ancestor-or-self::d:book/d:info/d:productnumber" /> </fo:block> I'm just guessing about the xpath you'd need. Peter On Thu, Feb 25, 2016 at 8:56 AM, Rob Flynn <> wrote: Sorry in advance for my ignorance in this area. So, I’ve got my fo-titlepage-template.xsl coded so I get a manual, hard coded text for my version number on my title page: <fo:table-cell> <fo:block text-align="left" font-size="10pt" font-weight="bold"> Version 11.2 </fo:block> <fo:block text-align="left" font-size="10pt" font-weight="bold"> October 2015 </fo:block> </fo:table-cell> I can’t figure out how to get the d:productnumber to appear in the same place. I’ve got code elsewhere that sets it to be part of the PDF title: <xsl:template match="d:productnumber" mode="book.titlepage.verso.auto.mode"> <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:use-attribute-sets="book.titlepage.verso.style" font-size="8pt"> <xsl:apply-templates select="." mode="book.titlepage.verso.mode"/> </fo:block> </xsl:template> But I can’t find anything online about how to insert this into my text string, like: <fo:block text-align="left" font-size="10pt" font-weight="bold"> Version [some code that drops the number here] </fo:block> Thanks in advance. Rob Flynn
Next in thread →
Next in month →