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: docbook xsl table extensions for colwidth failure

I run into trouble enabling the tablecolumns.extension in the DocBook XSL
stylesheet for HTML.

The setup is:

  DocBook XSL stylesheets 1.40
  SAXON 6.3
  Sun java 1.3.0_02
  Linux 2.4.5 (Mandrake)

I use a small driver file 'docbookx.xsl' to enable the extensions:

 <?xml version="1.0" encoding="ISO-8859-1"?>
   <xsl:param name="use.extensions"         select="'1'"/>
   <xsl:param name="tablecolumns.extension" select="'1'"/>
   <xsl:param name="saxon.tablecolumns"     select="'1'"/>
   <xsl:param name="nominal.table.width"    select="'6in'"/>

I have a small sample document, 'table-test.xml':

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article 
  PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
<?xml-stylesheet href="docbookx.xsl" type="text/xsl"?>

  <title>Table test</title>
    <title>Table test</title>
      <title>Table test</title>
      <tgroup cols="4">
        <colspec colnum="1" colwidth="1*"/>
        <colspec colnum="2" colwidth="1*"/>
        <colspec colnum="3" colwidth="1*"/>
        <colspec colnum="4" colwidth="1*"/>

I run the transformation like this:

java -cp
al/saxon6.3/saxon.jar com.icl.saxon.StyleSheet table-test.xml docbookx.xsl

with this result:

Error at xsl:copy-of on line 146 of
  Conversion of node-set to com.icl.saxon.expr.FragmentValue is not
Transformation failed

If I run the transformation from within emacs with xslt-process, I can get a
bit more debugging info:

/usr/share/sgml/docbook/xsl-stylesheets-1.40/html/table.xsl:146: Fatal
error: Conversion of node-set to com.icl.saxon.expr.FragmentValue is not

If I switch off "use.extensions", the 'table-test.xml' file is transformed
with no errors.

What might be the problem? 

Kind regards
Peter Ring

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

Powered by eList eXpress LLC