Tracing templates in front-matter.xsl for PDF2
Posted: Wed Jul 08, 2009 12:50 am
This is just a curiosity for me, but I wanted to know where the templates are that finally pull the values for what is in author tags, and copyright tags, etc for ditamap metadata in the <DITA-OT>\demo\fo\xsl\fo\front-matter.xsl file? Under the code to generate the title and subtitle there is a match for topicmeta tags which I traced to another template below that that says <xsl:template match="*[contains(@class, ' map/topicmeta ')]"> but then inside just says "<xsl:apply-templates/>" instead of an <xsl:value-of> assignment like I would expect. All the other similar templates do the same. Where are the final templates that extract the values from the tags?
In the "createFrontMatter" template there, for example, is an explicit call to a template (<xsl:call-template name="insertFrontMatterStaticContents"/>)that I traced to commons.xsl but after looking in commons and other .xsl files in the directory I cannot similarly figure out which templates the author, copyright, etc. tags are gotten from.
Any ideas about how to trace this?
In the "createFrontMatter" template there, for example, is an explicit call to a template (<xsl:call-template name="insertFrontMatterStaticContents"/>)that I traced to commons.xsl but after looking in commons and other .xsl files in the directory I cannot similarly figure out which templates the author, copyright, etc. tags are gotten from.
Any ideas about how to trace this?