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] | [Elist Home]


Subject: DOCBOOK-APPS: xsltproc crash with some customization


I want to warn about some crashing in xsltproc under NT4:

I had some docbook book corectly validated and processed to xhtml, chm and fo.
Then I made small change to it:

at begining I added:

    <!ENTITY radiosity SYSTEM "ref_radiosity.xml">

then placed that in some section:

    <section id="global_settings"><title>Global Settings</title>
      &film_exposure;
      &radiosity;
      &mechanics_simulation;
    </section>

and finally I created that file:

    <?xml version="1.0" encoding='UTF-8'?>
    <!--
    *
    * This file contains main structure for "radiosity" section
    *
    * $RCSfile: ref_radiosity.xml,v $
    * $Revision: 1.1 $
    * $Author: abx $
    *
    -->
    <section id="radiosity">
      <title>Radiosity</title>
      <section id="radiosity_cache">
        <sectioninfo>&abx;</sectioninfo>
        <title>Cache file</title>
        <indexterm>
          <primary>radiosity</primary>
          <secondary>Reference, cache</secondary>
        </indexterm>
        <para>
          Something not written yet...
        </para>
      </section>
    </section>

When I parsed my files after this change xsltproc started to crash during
output of htmlhelp (hhk file) without any message (regular crash under NT4).
I switched then to saxon and it returned error message that I have duplicated
declaration of "toc.section.depth". Yes, I had as follow:

in my common.xsl:

  <xsl:stylesheet ....>
  ...
  <xsl:param name="toc.section.depth">2</xsl:param>
  ...
  </xsl:stylesheet>

and in my htmlhelp.xsl:

  <xsl:stylesheet ...>
  <xsl:import href="/usr/local/share/xsl/htmlhelp/htmlhelp.xsl"/>
  <xsl:include href="common.xsl"/>
  <xsl:param name="toc.section.depth">10</xsl:param>
  ...
  </xsl:stylesheet>

when I removed that "toc.section.depth" line from my common.xsl either
xsltproc and saxon renders fine without any stop or crash.

Happy Christmas, ABX


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


Powered by eList eXpress LLC