
May 6th, 2004, 05:57 AM
|
|
Registered User
|
|
Join Date: Feb 2004
Posts: 14
Time spent in forums: 44 m 38 sec
Reputation Power: 0
|
|
|
Space in output from php5 libxsl
I have a xsl file that works fine with php4's Sablotron but not with libxsl in php5.
The problem is that the doesn't translate to a space
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp " ">
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xhtml" media-type="text/html" cdata-section-elements="style" encoding="ISO-8859-1"
doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
<xsl:template match="/">
<script type="text/javascript" src="/bar.js"> </script>
<script type="text/javascript" src="/foo.js"> </script>
The first <script> have a space but the secound one come out as <script/> instead of <script> </script>
How do i make the translate to a space?
The problem is only in php5 using the libxsl processer.
In php4 using the Sabertron processer the is no problem at all.
What am i missing?
|