note 49694 added to ref.xsl
| From: | appletalk at gmail dot com | Date: | Sat, 05 Feb 2005 06:32:52 +0000 |
| Subject: | note 49694 added to ref.xsl | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84548@lists.php.net to get a copy of this message | ||
As many of you may have noticed, DOM parser gives errors if the ' ' entity is
present. The E_WARN message looks like:
Warning: DOMDocument::load() [function.load]: Entity 'nbsp' not defined in ...
There're many ways to solve this:
a) The hard way
<xsl:text disable-output-escaping="yes"> &nbsp;</xsl:text>
b) Defining
At the top of the document, after the <?xml?> definition, add:
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " " >
]>
c) External Doctype
Just in case you want need other HTML entities, you can call an external doctype with the proper
definitions
<!DOCTYPE page SYSTEM "http://gv.ca/dtd/character-entities.dtd">
Of course, you can download the file and place it in your server.
----
Manual Page -- http://www.php.net/manual/en/ref.xsl.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49694
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49694&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49694&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49694&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49694&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49694&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49694&report=yes
Search -- http://master.php.net/manage/user-notes.php