note 18952 added to function.xslt-process
| From: | kuznecov at blok-caf dot ru | Date: | Mon, 11 Feb 2002 11:18:21 +0000 |
| Subject: | note 18952 added to function.xslt-process | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26467@lists.php.net to get a copy of this message | ||
Is there differences in DTD handling using php and sabcmd?
This is my index.xml:
<?xml version="1.0" standalone="no" ?>
<!DOCTYPE kuznecov SYSTEM "kuznecov.dtd">
<kuznecov>
<caption>123 CAPTION HERE: ©RIGHT; </caption>
</kuznecov>
This is my kuznecov.dtd:
<!ENTITY COPYRIGHT "(c) © (c)">
By using
$ sabcmd index.xsl index.xml index.xml.html.sabcmd
DTD is touched, but
<?php
$xh = xslt_create();
xslt_process($xh, "index.xml", "index.xsl", "index.xml.html");
?>
no error messages appears and no DTD entity using:
$ diff index.xml.html.sabcmd index.xml.html
13c13
< <h1>123 CAPTION HERE: (c) ¿ (c) </h1>
---
> <h1>123 CAPTION HERE: </h1>
By avoiding reference to kuznecov.dtd in index.xml error message appear., i.e. declaration is
correct? File kuznecov.dtd is placed near index.xml .
--
http://www.php.net/manual/en/function.xslt-process.php
http://master.php.net/manage/user-notes.php?action=edit+18952
http://master.php.net/manage/user-notes.php?action=delete+18952
http://master.php.net/manage/user-notes.php?action=reject+18952