ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-general
php-general
RE: [PHP] Re: XmlWriter::writeDTD bug...
by Jared Williams other posts by this author
Dec 7 2005 4:23AM messages near this date
[PHP] Re: XmlWriter::writeDTD bug... | Re: [PHP] Re: XmlWriter::writeDTD bug...
>  Jared Williams wrote:
>  > Hi,
>  > 
>  > 	$writer = new XmlWriter();
>  > 	...
>  > 
>  > 	$writer->writeDtd('html', '-//W3C//DTD XHTML 1.0 Strict//EN', 
>  > 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
>  > 
>  > 	produces no whitespace between the public & system ids like...
>  > 	
>  > 	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 
>  > Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
>  > 
>  > 	Has anyone got a workaround for this problem?
>  
>  libxml bug. Add $writer->setIndent(TRUE); before the writeDTD 
>  call (can revert it back right after if you dont want 
>  indenting). This will force whitespace insertion between the 
>  two - not pretty but its a workaround.
>  

PS.
	Yeah, thought it was libxml, hence didn't file a pecl bug report. But there does seem a pro
blem with this method as can't
just have a publicId or a systemId, libxml function uses NULL as a parameter to specify whic
h id you don't want to use. Which we've
lost with the PHP wrapper, as can only specify two strings.

And when pecl.php.net was reachable I'll report it.

Jared

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Jared Williams
Rob Richards
Jared Williams
Rob Richards
Jared Williams
Jared Williams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved