Russian info from map topicmeta to PDF properties
Posted: Fri Nov 27, 2015 4:04 pm
Hello!
I need to insert information from map\topicmeta to PDF properties (for example, title).
I customize template "createMetadata".
For example:
When I publish document in English, doc is fine and PDF properties are inserted correctly.
For the purpose of publishing documents in Russian I add locale info:But it doesn't help - document is OK, but there is no information in PDF properties.
I tried to analize topic.fo file and comapare Russian and English "versions" of fo-files.
I found out the following: DITA OT makes additional fo:inline block for Russian title.
But I have no idea what should I do with it.
Help, please
Thank U!
I need to insert information from map\topicmeta to PDF properties (for example, title).
I customize template "createMetadata".
For example:
Code: Select all
xsl:template name="createMetadata">
<fo:declarations >
<x:xmpmeta>
<rdf:RDF>
<rdf:Description rdf:about="">
<dc:title>
<xsl:value-of select="//*[contains(@class, ' map/map ')]/@title"/>
</dc:title>
<dc:creator>Document author</dc:creator>
<dc:description>Document subject</dc:description>
</rdf:Description>
</rdf:RDF>
</x:xmpmeta>
</fo:declarations>
</xsl:template>
For the purpose of publishing documents in Russian I add locale info:
Code: Select all
<dc:title xml:lang="ru-RU">
<xsl:value-of select="//*[contains(@class, ' map/map ')]/@title"/>
</dc:title>
I tried to analize topic.fo file and comapare Russian and English "versions" of fo-files.
I found out the following: DITA OT makes additional fo:inline block for Russian title.
But I have no idea what should I do with it.
Help, please
Thank U!