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:stylesheet 
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   version="1.0">
   <xsl:import 
 
href="file:///usr/share/sgml/docbook/xsl-stylesheets-1.40/html/docbook.xsl"/
>
   <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'"/>
 </xsl:stylesheet>

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" 
  "/usr/share/sgml/docbook/xml-dtd-4.1.2/docbookx.dtd">
<?xml-stylesheet href="docbookx.xsl" type="text/xsl"?>

<article>
  <title>Table test</title>
  <section>
    <title>Table test</title>
    <table>
      <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*"/>
        <tbody>
          <row>
            <entry><para>11</para></entry>
            <entry><para>12</para></entry>
            <entry><para>13</para></entry>
            <entry><para>14</para></entry>
          </row>
          <row>
            <entry><para>21</para></entry>
            <entry><para>22</para></entry>
            <entry><para>23</para></entry>
            <entry><para>24</para></entry>
          </row>
        </tbody>
      </tgroup>
    </table>
  </section>
</article>


I run the transformation like this:

java -cp
/usr/share/sgml/docbook/xsl-stylesheets-1.40/extensions/saxon63.jar:/usr/loc
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
file:/usr/share/sgml/docbook/xsl-stylesheets-1.40/html/table.xsl:
  Conversion of node-set to com.icl.saxon.expr.FragmentValue is not
supported
Transformation failed

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

...
javax.xml.transform.TransformerConfiguationException:
/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
supported
...

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