[xml/sgml-pkgs] Bug#337706: xsltproc: XPath error : Undefined variable

Hardy Beltran Monasterios hardy at acm.org
Sat Nov 5 21:09:57 UTC 2005


Package: xsltproc
Version: 1.1.12-8
Severity: important

Hello

I want process a DocBook XML document. But when I run the command

xsltproc $DBSTYLEPATH/nwalsh/html/docbook.xsl test.xml

I get this error:

XPath error : Undefined variable
compilation error:
file /usr/share/xml/docbook/stylesheet/nwalsh/html/inline.xsl line 879
element a
Attribute template href: failed to compile $id
XPath error : Undefined variable
compilation error:
file /usr/share/xml/docbook/stylesheet/nwalsh/html/admon.xsl line 83
element img
Attribute template alt: failed to compile $alt
XPath error : Undefined variable
compilation error:
file /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl line 144
element meta
Attribute template content: failed to compile $VERSION


This is my test.xml file

------------- test.xml file [BEGIN] -------------
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
  "/usr/share/xml/docbook/schema/dtd/4.3/docbookx.dtd">
<book id="test" lang="en">
  <bookinfo>
    <title>DocBook Test</title>
    <copyright>
      <year>2005</year>
      <holder>Some Company</holder>
    </copyright>
    <authorgroup>
      <author>
        <surname>LastName</surname>
        <firstname>FirstName</firstname>
      </author>
    </authorgroup>
  </bookinfo>

  <chapter id="ch-test">
    <title>Test Chapter</title>

    <para>A brief description</para>
  </chapter>
</book>

------------- test.xml file [END] -------------


-- System Information:
Debian Release: 3.1
  APT prefers testing
Architecture: i386 (i686)
Kernel: 2.4.27-2-686

Packages xsltproc status:

hardy at tanguera:test$ dpkg --status xsltproc
Package: xsltproc
Status: install ok installed
Priority: optional
Section: text
Installed-Size: 164
Maintainer: Debian XML/SGML Group <debian-xml-sgml-pkgs at lists.alioth.debian.org>Architecture: i386
Source: libxslt
Version: 1.1.12-8
Depends: libc6 (>= 2.3.2.ds1-4), libgcrypt11, libgpg-error0 (>= 1.0), libxml2 (>= 2.6.16), libxslt1.1 (>= 1.1.12), zlib1g (>= 1:1.2.1)
Description: XSLT command line processor
 XSLT is an XML language for defining transformations of XML files from
 XML to some other arbitrary format, such as XML, HTML, plain text, etc.
 using standard XSLT stylesheets.
 .
 This package contains a command line tool that facilitates XSLT
 transformations.




Thanks



-- 
Hardy Beltran Monasterios
hardy at acm dot org
Usuario Linux #50949 - http://counter.li.org
La Paz, Bolivia





More information about the debian-xml-sgml-pkgs mailing list