I have this <article xmlns="http://docbook.org/ns/docbook" version="5.0"> <!--<title>Test Title</title> works when title is here --> <info> <title>Test Title</title> <!-- doesn't work here --> <author> <personname>The Author</personname> </author> </info> <section> <title>Paragraph</title><para> Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </para>
</section> </article>
With the following customization
<xsl:template match="article">
<fo:page-sequence master-reference="titlepage-first">
<fo:flow flow-name="xsl-region-body">
<xsl:call-template name="front.cover"/>
</fo:flow>
</fo:page-sequence>
<xsl:apply-imports/>
</xsl:template>
<xsl:template name="front.cover">
<fo:block space-before="2in"
space-before.conditionality="retain" font-family="Helvetica"
font-size="24pt" text-align="start" font-weight="bold">
<fo:inline>
<xsl:choose>
<xsl:when test="/article/info/title">
<xsl:value-of select="/article/info/title"/>
</xsl:when>
<xsl:when test="/article/title">
<xsl:value-of select="/article/title"/>
</xsl:when>
</xsl:choose>
</fo:inline>
</fo:block>
</xsl:template>
I get the title when located at "/article/title" but not when at
"/article/info/title". What am I missing?
Lou
smime.p7s
Description: S/MIME Cryptographic Signature
