note 66360 added to ref.xsl
| From: | pinkeltje at xs4all dot nl | Date: | Sat, 20 May 2006 00:34:27 +0000 |
| Subject: | note 66360 added to ref.xsl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111713@lists.php.net to get a copy of this message | ||
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
----
Server IP: 194.109.193.119
Probable Submitter: 80.126.202.248
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/ref.xsl.php
Edit -- http://master.php.net/note/edit/66360
Del: integrated -- http://master.php.net/note/delete/66360/integrated
Del: useless -- http://master.php.net/note/delete/66360/useless
Del: bad code -- http://master.php.net/note/delete/66360/bad+code
Del: spam -- http://master.php.net/note/delete/66360/spam
Del: non-english -- http://master.php.net/note/delete/66360/non-english
Del: in docs -- http://master.php.net/note/delete/66360/in+docs
Del: other reasons-- http://master.php.net/note/delete/66360
Reject -- http://master.php.net/note/reject/66360
Search -- http://master.php.net/manage/user-notes.php