note 66360 rejected from ref.xsl by bjori

From: Date: Wed, 07 Jun 2006 10:36:52 +0000
Subject: note 66360 rejected from ref.xsl by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-113490@lists.php.net to get a copy of this message
Note Submitter: pinkeltje at xs4all dot nl ---- Sorry for spoiling the party, but <?php xml2html('test', 'docbook-xsl-1.69.1/xhtml/docbook'); ?> <?php function xml2html($fileName, $styleName) { $xml = new DOMDocument; $xsl = new DOMDocument; $prc = new XSLTProcessor; $xsl->resolveExternals = TRUE; $xsl->substituteEntities = TRUE; $xml->load("{$fileName}.xml"); $xsl->load("{$styleName}.xsl"); $prc->importStyleSheet($xsl); return $prc->transformToXML($xml); } ?> with (file test.xml): <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd" [<!ENTITY foo "bar"> ] > <article> <sect1> <para>foo &foo;</para> </sect1> </article> will NOT produce the proper output (foo bar), neither with other or no DTD's or different sheets. Still dunno why, too may hours spent on this already. WinXP, PHP5, XSL enabled, libxslt Version 1.1.7, EXSLT enabled, libexslt Version 0.8.5, libxml2 Version 2.6.11

« previous php.notes (#113490) next »