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: XSL stylesheet to go from DocBook to Qt Assistant?


Hello,

I am working with DocBook to generate HTML and PDF files and,
up to now, enjoy it very much. Now, I am asked to generate HTML
files that could be used with Qt Assistant.

Qt Assistant can read any HTML file but, in order to take advantage
of the /Contents/, /Index/ and /Search/ features, the Documentation
Content File must contain the documentation's table of contents and 
all important keywords for the index. For example:

<DCF>
 <section ref="./chap1/chap1.html" title="Chapter1">
  <section ref="./chap1/section1.html" title="Section1">
   <keyword ref="./chap1/section1.html#foo">foo</keyword>

   <keyword ref="./chap1/section1.html#bla">bla</keyword>

   <section ref="./chap1/section1.html#subsection1" title="Subsection 
1"/>

   <section ref="./chap1/section1.html#subsection2" title="Subsection 
2"/>

   <section ref="./chap1/section1.html#subsection3" title="Subsection 
3"/>
  </section>

  <section ref="./chap1/section2" title="Section2">
   <section ref="./chap1/section2.html#subsection1" title="Subsection 
1"/>

   <section ref="./chap1/section2.html#subsection2" title="Subsection 
2"/>

   <section ref="./chap1/section2.html#subsection3" title="Subsection 
3"/>
  </section>
 </section>
 <section ref="./chap2/chap2.html" title="Chapter2">
  <keyword ref="./chap2/chap2.html#foo">foo</keyword>

  <section ref="./chap2/section1.html" title="Section1"/>
 </section>
</DCF>

It seems to me that it should be possible to create an XSL stylesheet
that would generate just this but I did not find any.
I thought starting with htmlhelp-common.xsl and modifying it.
With a little bit of post-processing of the file toc.hhc, I obtained
the "contents" part, that is all the <section> entries. Similarly, 
I was able to extract the <keyword> entries from the index.hhk file.
However, I need the information contained in these two files to be 
combined into one file only, where any keyword tags or a given section 
must appear before any sections nested within the given section.

Did anybody faced and resolved the same problem?

Any help will be greatly appreciated.


Diane Larin
INRO



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