[xslt] exsl:document's doctype stuff not working?



[please CC replies to cactus@cactus.rulez.org]

Hi,

Given the following style sheet:

<?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>

and the following content:

<test/>

The generated test.docbook file doesn't have doctype information:

<?xml version="1.0" encoding="iso-8859-1"?>
<article><title>Hello World</title></article>


[gnome2] 23:19:08 [cactus@galaxy tmp]$ xsltproc -V
Using libxml 20410, libxslt 10007 and libexslt 700


Is this a genuine libexslt bug or am I doing something wrongly?

Thanks,
	Gergo

-- 
   .--= ULLA! =---------------------.   `We are not here to give users what
   \     http://cactus.rulez.org     \   they want'  -- RMS, at GUADEC 2001
    `---= cactus@cactus.rulez.org =---'
A ferfi jutalma a no, a no jutalma, hogy o a jutalom.




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