if you are a human please do not click here
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Username :
Password :
Home
Help
Search
Calendar
Register
Login
XMetaL Community Forums
»
General
»
DITA and XMetaL Discussion
»
SOLVED: PDF via RenderX not picking up MainBookTitle
Pages:
1
« previous
next »
Print
Author
Topic: SOLVED: PDF via RenderX not picking up MainBookTitle (Read 2870 times)
JoAnne
Member
Posts: 49
SOLVED: PDF via RenderX not picking up MainBookTitle
«
on:
March 15, 2010, 11:04:16 AM »
Using XMetaL Author Enterprise 6.0.0.079 on Windows 7.
When I generate a PDF from a bookmap using 'Book via RenderX', the cover page does not pick up the mainbooktitle or the map title, but the title from the first file in the ditamap.
I don't have this problem when using 'XMetaL Enhanced PDF via RenderX XEP'.
Is there a way to fix this?
thanks...
«
Last Edit: March 15, 2010, 12:15:23 PM by jgrey
»
Logged
pmasal
Member
Posts: 86
Re: PDF via RenderX not picking up MainBookTitle
«
Reply #1 on:
March 15, 2010, 11:28:18 AM »
We use a centralized DITA toolkit with the Idiom plugin for PDF2 processing. If XMetaL is doing the same thing (using the PDF2 plugin), you might need to add something the following to demo\fo\xsl\fo\front_matter_1.0.xsl, to ensure that PDF2 picks up the right title for bookmaps, normal DITA maps, and topics (when they are formatted by themselves):
<!-- set the title -->
<fo:block xsl:use-attribute-sets="__frontmatter__title">
<xsl:choose>
<xsl:when test="$map//*[contains(@class,' bookmap/mainbooktitle ')][1]">
<xsl:apply-templates select="$map//*[contains(@class,' bookmap/mainbooktitle ')][1]"/>
</xsl:when>
<xsl:when test="//*[contains(@class, ' map/map ')]/@title">
<xsl:value-of select="//*[contains(@class, ' map/map ')]/@title"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="/descendant::*[contains(@class, ' topic/topic ')][1]/*[contains(@class, ' topic/title ')]"/>
</xsl:otherwise>
</xsl:choose>
</fo:block>
Paul Masalsky
EMC
Logged
JoAnne
Member
Posts: 49
Re: SOLVED: PDF via RenderX not picking up MainBookTitle
«
Reply #2 on:
March 15, 2010, 12:16:21 PM »
Thanks, Paul. My PDFs are right again.
Logged
Pages:
1
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> Forum Information
=> General XMetaL Discussion
=> DITA and XMetaL Discussion
=> XMetaL Tips and Tricks
=> XMetaL Announcements and Events
Loading...