From: <no...@so...> - 2002-07-27 14:34:29
|
Bugs item #585038, was opened at 2002-07-22 19:48 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=585038&group_id=21935 Category: DocBook XSL Group: DocBook V4 Status: Open Resolution: Rejected Priority: 7 Submitted By: Kevin Ruscoe (ruscoekm) Assigned to: Nobody/Anonymous (nobody) Summary: XSL > v1.50 --> xmlXPathCompiledEval err Initial Comment: The following tool chain works fine: libxml2 v2.4.23 libxslt v1.0.19 DocBook DTD v4.2 DocBook XSL v1.50.0 whereas this tool chain does not: libxml2 v2.4.23 libxslt v1.0.19 DocBook DTD v4.2 DocBook XSL v1.52.2 Here is my test DocBook file: test.dbk: -------------------- <?xml version='1.0'?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd"> <article> <para> <inlinemediaobject> <imageobject> <imagedata fileref="foo.png"/> </imageobject> </inlinemediaobject> </para> </article> -------------------- When I run a command similar to the following: test.sh: -------------------- $ xsltproc --catalogs -o test.html docbook-xsl/1.52.2/html/docbook.xsl test.dbk -------------------- I get this output: test.out -------------------- Error Undefined namespace prefix xmlXPathCompiledEval: evaluation failed -------------------- and this (incomplete) HTML: test.html -------------------- <html><head><meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"><title></title><meta name="generator" content="DocBook XSL Stylesheets V1.52.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="article"><div class="titlepage"><hr></div></div></body></html> -------------------- Regards Kevin Ruscoe email: Kev...@ub... ---------------------------------------------------------------------- Comment By: Oliver Eikemeier (eikemeier) Date: 2002-07-27 16:34 Message: Logged In: YES user_id=563013 This patch works for me: --- docbook-xsl-1.52.2.orig/common/common.xsl 2002- 07-08 01:10:30 +0200 +++ docbook-xsl-1.52.2/common/common.xsl 2002- 07-27 15:52:44 +0200 @@ -1,6 +1,7 @@ <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:doc="http://nwalsh.com/xsl/documentation/1.0" + xmlns:svg="http://www.w3.org/2000/svg" exclude-result-prefixes="doc" version='1.0'> --- docbook-xsl-1.52.2.orig/html/graphics.xsl 2002-07-10 12:20:12 +0200 +++ docbook-xsl-1.52.2/html/graphics.xsl 2002-07-27 15:52:44 +0200 @@ -6,6 +6,7 @@ xmlns:ximg="xaln://com.nwalsh.xalan.ImageIntrinsics" xmlns:xtext="com.nwalsh.xalan.Text" xmlns:lxslt="http://xml.apache.org/xslt" + xmlns:svg="http://www.w3.org/2000/svg" exclude-result-prefixes="xlink stext xtext lxslt simg ximg" extension-element-prefixes="stext xtext" version='1.0'> --- docbook-xsl-1.52.2.orig/xhtml/graphics.xsl 2002- 07-10 12:35:28 +0200 +++ docbook-xsl-1.52.2/xhtml/graphics.xsl 2002-07-27 15:52:44 +0200 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="US-ASCII"?> <!--This file was created automatically by html2xhtml--> <!--from the HTML stylesheets. Do not edit this file.--> -<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.T extFactory" xmlns:simg="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.I mageIntrinsics" xmlns:ximg="xaln://com.nwalsh.xalan.ImageIntrinsics" xmlns:xtext="com.nwalsh.xalan.Text" xmlns:lxslt="http://xml.apache.org/xslt" exclude-result- prefixes="xlink stext xtext lxslt simg ximg" extension- element-prefixes="stext xtext" version="1.0"> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:stext="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.T extFactory" xmlns:simg="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.I mageIntrinsics" xmlns:ximg="xaln://com.nwalsh.xalan.ImageIntrinsics" xmlns:xtext="com.nwalsh.xalan.Text" xmlns:lxslt="http://xml.apache.org/xslt" xmlns:svg="http://www.w3.org/2000/svg" exclude-result- prefixes="xlink stext xtext lxslt simg ximg" extension- element-prefixes="stext xtext" version="1.0"> <!-- ******************************************************************** $Id: graphics.xsl,v 1.26 2002/07/10 10:20:12 nwalsh Exp $ ---------------------------------------------------------------------- Comment By: Kevin Ruscoe (ruscoekm) Date: 2002-07-25 18:39 Message: Logged In: YES user_id=532451 I think this behaviour is due to a bug in Xsltproc. See http://bugzilla.gnome.org/show_bug.cgi?id=87849 ---------------------------------------------------------------------- Comment By: Kevin Ruscoe (ruscoekm) Date: 2002-07-25 17:53 Message: Logged In: YES user_id=532451 The FO stylesheets work fine and the generated PDF (using Apache FOP) contains the SVG and works perfectly. It is only the HTML and XHTML stylesheets which result in this error. ---------------------------------------------------------------------- Comment By: Kevin Ruscoe (ruscoekm) Date: 2002-07-24 15:09 Message: Logged In: YES user_id=532451 With verbose mode, we get some more information: [snip] xsltProcessOneNode: applying template 'imageobject' for imageobject xsltChoose: test svg:* Error Undefined namespace prefix xmlXPathCompiledEval: evaluation failed [snip] ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=585038&group_id=21935 |