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: Empty index page in chunk output from 1.73.0 [was: Going to DocBook1.73]

Thanks for testing !

I've made several tests and always get the same problem. Here are in a zip the results of my transformation with 1.72 and 1.73.
My chunk.xsl is :
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

  <!--xsl:import href="../docbook-xsl-1.72.0/html/chunk.xsl" /-->
  <xsl:import href="../docbook-xsl-ns-1.73.0/html/chunk.xsl" />
  <!--xsl:import href="./common-html.xsl" /-->
  <xsl:output method="html" encoding="UTF-8" />

  <xsl:param name="chunker.output.indent" select="'yes'" />
  <xsl:param name="chunk.section.depth">2</xsl:param>

  <!-- enable navigational icons, -->
  <xsl:param name="navig.graphics">1</xsl:param>
  <xsl:param name="navig.graphics.extension">.png</xsl:param>
  <xsl:param name="navig.graphics.path" select="'../../resources/images/'" />
  <!--  Filename use id -->
  <xsl:param name="use.id.as.filename" select="1" />

      - fix the build for thoses who couldn't build
      - the doc anymore -->
  <xsl:param name="language">en</xsl:param>


the only thing I've changed between the two generations is the import of the chunk.xsl, I've commented the import of my other config file to be sure it doesn't interfer... even when I suppress everything except the import, I still have an empty index...

I make the transform with an ant call to xslt (v 1.1.15), here is my task (simplified, in my build file everything is variables) :
  <target name="transformWithXalan">
    <exec executable="xmllint" failonerror="true">
      <arg line="--output tmpfile" />
      <arg line="--xinclude" />
      <arg value="src/doc/MyTestBook.xml" />
    <xslt basedir="${basedir}" style="src/stylesheets/chunk.xsl" in="tmpfile" out="target/chunk/index.xml" extension=".html">
        <dtd publicId="-//OASIS//DTD DocBook XML V4.4//EN" location="/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" />
    <delete file="tmpfile">

I've also tested with DocBook 5.0b5 DTD and get the same.
I had a look at the tmpfile wich is used by xslt and it's exactly the same as the original, as there is no xi:include to transform...

what xslt engine are you using ?

thanks again for your time :)

Michael(tm) Smith a écrit :
Marie Sauvage - EBM WebSourcing <marie.sauvage@ebmwebsourcing.com>, 2007-07-23 12:36 +0200:

   For the chunk output, even with no customization, problem is the same :
   index page is empty, only navheader and navfooter. I join to the mail the
   index.html output.

I just tested your MyTestBook.xml file against 1.73.0 and I can't
reproduce that problem. I get the exact same output as I get if I
run that file against the 1.72.0 stylesheets (see attached zip
file with HTML output from test runs against 1.72.0 and 1.73.0).

Have you tried that same file against the 1.72.0 stylesheets? What
XSLT engine are you using? Are you running it from the command
line (command prompt), or through some other interface? If you're
running it from the command line, what is the exact command you
are running?



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