Pages: 1
Print
Author Topic: refering topic titles  (Read 1899 times)
ramu
Member

Posts: 33


« on: March 18, 2014, 01:53:17 AM »

Hi,

I am generating pdf outside xmetal. That is preparing xml files using Xmetal and generating pdf using xsl formatter using my own style sheet.

In my o/p, the title of the composite file in xml file  should come in my o/p page. It should dynamically changes.

I have referred the dita map xsl file in DITA OT kit. But it didn't find any xsl file for a topic (composite)

How can i refer or call that topic name in my xsl file.


please give some suggestion.


thanks in advance
Logged
IF
Member

Posts: 80


« Reply #1 on: March 19, 2014, 12:02:53 PM »

 I am not sure if this is what you're asking, but this is how I have modified the prolog template to display the name of the source dita file of each topic  my PDF output. 

     
  <xsl:template match="*[contains(@class, ' topic/prolog ')]">
   <fo:block xsl:use-attribute-sets="prolog"><xsl:value-of select="@xtrf" /></fo:block>
 </xsl:template>
     
Logged
ramu
Member

Posts: 33


« Reply #2 on: March 20, 2014, 12:21:51 AM »

Let me explain clearly.
 I have an XML file like this

<dita><concept><title>volume name</title>
                <concept><title>Part Name</title>
                       <concept><title>chapter name</title>
                              <concept><title>section name</title>
                                    <concept><title>sub-section 1</title>
                                     <concept><title>sub-section 2</title></concept></concept></concept></concept></concept></concept>


Now in my style sheet(not a XMetal style sheets, we have customized style sheets according  to out  requirement) the volume,part name, chapter name should comes in header.





Logged
Pages: 1
Print
Jump to: