OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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 <jirka@kosek.cz> 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: jirka@kosek.cz     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
------------------------------------------------------------------






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]