[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] table customization problem
Hello Mita, My solution was relating to a single html file and described only the change for section. Your problem is to include the customization at the right place. Javahelp imports html/chunk.xsl but this file processes chapters and sections into multiple files before calling to original template to generate the content (<xsl:apply-imports/> is used). As Bob Stayton in "DocBook XSL: The Complete Guide" Section "Chunking customization" (http://www.sagehill.net/docbookxsl/ChunkingCustomization.html) describes the customization for the single page output must be imported before the chunking directives. I use eclipse and ant to generate html, html_chunk and pdf. The following description refer to docbook-xsl-1.69.1.zip. I don't know the best way for you to import the files into each other. Maybe you edit the files directly in the zip or you extract it. Finally you use javahelp.xsl or profile-javahelp.xsl as stylesheet for your xsl-processor. In line 6 this file imports the html/chunk.xsl file. The first possibility is to redirect this to an other file (e.g. mychunk.xsl) or you edit html/chunk.xsl. 1st case: mychunk.xsl is a copy of html/chunk.xsl. Paste the customization of the section after <xsl:import href="docbook.xsl"/> line 18 2nd case: Edit html/chunk.xsl in line 18 from <xsl:import href="docbook.xsl"/> to <xsl:import href="mydocbook.xsl"/>. mydocbook.xsl contains your customization for the single files. See "DocBook XSL: The Complete Guide", "Chapter 8. Customization methods", "Example 8.1. Customization layer". Important is marker 3. This imports the standard html transformations. At marker 4 you can change the standard for a section by pasting the customization of the section. I think the second possibility is better because you don't change the behavior of the html chunk function. Take care of the paths to the different files.I can't test this because I have no sources to build javahelp from. But I hope this time it will work. Regards Holger Mita Majumdar wrote on 20.12.2005 13:46: > Hello Sir, > > > I hope you remember the query posted by me on the customization of two > tables in different types. I tried to solve the problem using the > solution you have provided. I have also added the xml template that you > have given to my customization layer. and declared two different > formatting in the CSS. (I am using XML mind XML editor to edit the xml > file). But when I compile the jar using the > ant script. and view it using the hsviewer. I do not see the table that > I have included under section and defined role attribute. > I extracted the jar and checked the HTML code that is generated form the > XML file, and I saw that the table which I specified under the section > was not included in the html code. > > The problem is when I specify the table under the section it is not > compiled and is not included in the code. > > Thanks in advance. > > Mita > > At 03:48 PM 11/28/2005, Holger Morch wrote: >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]