Re: [docbook-apps] Generating a toc.xml using eclipse.xsl

From
"Dhristine Eoyle"
Date
2006-07-28T15:29:28+00:00
ID
Thread
Re: [docbook-apps] Generating a toc.xml using eclipse.xsl
Hi Jirka,

Thanks for your help. As you suggeste, I tried adding:

<?dbhtml dir="bookdirname" filename="filename.html"?>

 

and also made some customizations to the eclipse.xsl template to support the dbhtml processing instruction:

                       
<xsl:variable name="get.dbhtml.dir">

                           
<xsl:call-template name="dbhtml-dir"/>

                       
</xsl:variable>

                       
<!--Gets the filename attribute value from the dbhtml PI-->

                       
<xsl:variable name="get.dbhtml.filename">

                           
<xsl:call-template name="dbhtml-filename"/>

                       
</xsl:variable>

                       
<!--Adds the two variable values to generate the href path for the
toc.xml topic href-->

                       
<xsl:variable name="concat.base.dir.dir.filename">

                           
<xsl:value-of
select="concat($base.dir,$get.dbhtml.dir,$get.dbhtml.filename)"/>

                       
</xsl:variable>

                       

                      
<toc label="{$title}"
topic="{$concat.base.dir.dir.filename}">  

                           
<xsl:apply-templates select="/*/*" mode="etoc"/>

                       
</toc>

It seems to work for me.

Regards

Christine Doyle

On 7/26/06, Jirka Kosek <> wrote:
Christine Doyle wrote:

> Note that I use the "<?dbhtml filename="bookdirname/filename.html"?>"
> chunking mechanism to specify the output file for each section.

AFAIK you should use

<?dbhtml filename="filename.html" dir="bookdirname"?>

instead. Does Eclipse stylesheet work with this form of dbhtml PI?

--
------------------------------------------------------------------

   Jirka Kosek     e-mail:      http://www.kosek.cz
------------------------------------------------------------------
   Profesionální ¹kolení a poradenství v oblasti technologií XML.

      Podívejte se na ná¹ novì spu¹tìný web http://DocBook.cz
        Podrobný pøehled ¹kolení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

                    Nejbli¾¹í
termíny ¹kolení:
     ** XSLT 23.-26.10.2006 ** XML schémata 13.-15.11.2006 **
      ** DocBook 11.-13.12.2006 ** XSL-FO 11.-12.12.2006 **
------------------------------------------------------------------
   
http://xmlguru.cz    Blog mostly about XML for English readers
------------------------------------------------------------------