Re: [xml] old exsl:document bug back?



On Wed, Apr 06, 2005 at 02:26:45PM +0200, Jeroen Ruigrok/asmodai wrote:
Right now I am using exsl:document as follows:

<exsl:document href="{$filename}" method="xml" encoding="UTF-8"
  doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

Yet the output file only gives:

<?xml version="1.0" encoding="UTF-8"?>

Looking around I found this old bug reference in lib(e)xslt:

http://mail.gnome.org/archives/xslt/2001-November/msg00056.html

This is exactly what I am facing right now.

  Your example is not complete so unusable.
The example from ERDI Gergo was complete, and work for me without problem :

paphio:~/tmp -> cat tst.xml
<test/>
paphio:~/tmp -> cat tst.xsl
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
  xmlns:exsl="http://exslt.org/common";
  extension-element-prefixes="exsl"
  exclude-result-prefixes="exsl">

  <xsl:template match="/">
    <exsl:document href="test.docbook"
      method="xml" encoding="iso-8859-1"
      doctype-public="-//OASIS//DTD DocBook XML V4.1.2//EN"
      doctype-system="http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
      <article>
        <title>Hello World</title>
      </article>

    </exsl:document>
  </xsl:template>

</xsl:stylesheet>
paphio:~/tmp -> xsltproc tst.xsl tst.xml
paphio:~/tmp -> xsltproc --version
Using libxml 20618-CVS2392, libxslt 10113-CVS1008 and libexslt 811-CVS1008
xsltproc was compiled against libxml 20618, libxslt 10113 and libexslt 811
libxslt 10113 was compiled against libxml 20618
libexslt 811 was compiled against libxml 20618
paphio:~/tmp -> cat test.docbook
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" 
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
<article><title>Hello World</title></article>
paphio:~/tmp ->

  I can't reproduce the bug you pointed to. I can't reproduce your bug either
Please follow the instructions at 
    http://xmlsoft.org/XSLT/bugs.html

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]