php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26183 Sablotron incorrectly erroring on DOCTYPE SYSTEM http
Submitted: 2003-11-09 02:34 UTC Modified: 2005-02-16 05:04 UTC
From: andrew at operationaldynamics dot com Assigned:
Status: Not a bug Package: XSLT related
PHP Version: 4.3.2 OS: Gentoo Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: andrew at operationaldynamics dot com
New email:
PHP Version: OS:

 

 [2003-11-09 02:34 UTC] andrew at operationaldynamics dot com
Description:
------------
When using the Sablotron XSLT processor, it would not let me reference a SYSTEM DTD via http. I was using:

<!DOCTYPE plan SYSTEM "plan.dtd">

just fine, but when I needed to make the reference not rely on my location on the filesystem, I switched to this:

<!DOCTYPE plan SYSTEM "http://goals/plan.dtd">

which no longer worked. Error below.

Reproduce code:
---------------
Calling PHP code:

xslt_process($xh, $srcfile, $xslfile, $outfile)



Expected result:
----------------
http references should work in SYSTEM declarations!


Actual result:
--------------
Warning: Sablotron error on line 1: XML parser error 4: not well-formed (invalid token) in /home/andrew/Sites/local/goals/goalsDriver.php on line 115

WORKAROUND:

By changing the DOCTYPE line to 

<!DOCTYPE plan PUBLIC "-" "http://goals/plan.dtd">

It worked exactly as expected. I looked around, and saw many W3C examples which used SYSTEM in conjunction with an http method.

The PUBLIC specification is only supposed to be used when one has done the right thing in naming a public DTD (ie, "-" isn't really an appropriate name!)

Methinks that this is an upstream bug in Sablotron.


AfC

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-11-09 23:14 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a Sablotron issue, not a PHP one. Please report this bug to Sablotron developers.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC