This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Problems creating pdf file of tdg


Ehm. classpath? extensions/saxon643.jar?

Ok, next try:

C:\TMP>echo %classpath%
C:\tmp\docbook-xsl-1.48\extensions\saxon643.jar
C:\TMP>saxon\saxon defguide\en\book.xml docbook-xsl-1.48\fo\docbook.xsl
1>tdg.fo
Making portrait pages on USletter paper (8.5inx11in)
prefaceinfo encountered, but no template matches.
pubdate encountered, but no template matches.
releaseinfo encountered, but no template matches.
Error at xsl:copy-of on line 177 of
file:/C:/TMP/docbook-xsl-1.48/fo/table.xsl:
  Exception in extension function java.lang.NoSuchMethodError:
java/lang/Float:
method parseFloat(Ljava/lang/String;)F not found
Transformation failed: Run-time errors were reported
C:\TMP>c:\dlc91\jdk\bin\java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

Does this mean I should go out to the bookstore and buy a printed copy of
TDG? (-;

>From table.xsl:

  <xsl:choose>
    <xsl:when test="$use.extensions != 0
                    and $tablecolumns.extension != 0">
      <xsl:choose>
        <xsl:when test="function-available('stbl:adjustColumnWidths')">
          <xsl:copy-of select="stbl:adjustColumnWidths($colspecs)"/>
        </xsl:when>
        <xsl:when test="function-available('xtbl:adjustColumnWidths')">
          <xsl:copy-of select="xtbl:adjustColumnWidths($colspecs)"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:message terminate="yes">
            <xsl:text>No adjustColumnWidths function available.</xsl:text>
          </xsl:message>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:when>
    <xsl:otherwise>
      <xsl:copy-of select="$colspecs"/>
    </xsl:otherwise>
  </xsl:choose>

Simon.

---

<snip>

> Does this mean that thare is no way to convert TDG to PDF format at
moment?

I can't say I've done it, but I do recognize that
error.  Now that you have turned on extensions to
process the text inclusion, you are running into
a missing extension in another template, this
time in table.xsl.

Did you include the appropriate Saxon extensions
file, such as extensions/saxon643.jar, in your CLASSPATH?
You'll need to do that to get the extension code.

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]