XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 6th, 2004, 05:57 AM
hellbrand hellbrand is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 14 hellbrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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">&nbsp;</script>


The first <script> have a space but the secound one come out as <script/> instead of <script> </script>
How do i make the &nbsp; 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?

Reply With Quote
  #2  
Old May 6th, 2004, 05:59 AM
hellbrand hellbrand is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 14 hellbrand User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 38 sec
Reputation Power: 0
Hmm the system seems to translate my &160; to spaces

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Space in output from php5 libxsl


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT