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 January 27th, 2004, 02:56 PM
pallan pallan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Winnipeg, MB Canada
Posts: 44 pallan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 54 sec
Reputation Power: 8
Send a message via AIM to pallan
XSL and HTML Entities are disappearing

Hi,

I am working on one of my first attempts at XSLT to tranform supplied XML docs into HTML. My XSL stylesheet is working great except for any HTML entities in the text data of the XML (eg. † — ). After running through XSLT these have disappeared and are not in the source code of the new HTML page.

Code:
<?xml version="1.0"?>
...
<fnoteref>
     &dagger;
</fnoteref>


It seems not matter what I put in my XSL this is just ignored. Any help or directions would be greatly appreciated.

Peer
__________________
Weiler's Law
Nothing is impossible for the man who doesn't have to do it himself.

Reply With Quote
  #2  
Old January 27th, 2004, 07:40 PM
fpmurphy fpmurphy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: USA
Posts: 305 fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level)fpmurphy User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 1 Day 7 h 17 m 54 sec
Reputation Power: 7
With XML a small set of characters are 'special' including
ampersand '&' and the left angle bracket '<'.

Have a look at the following:

www.dpawson.co.uk/xsl/characters.html

- Finnbarr

Reply With Quote
  #3  
Old January 29th, 2004, 10:53 AM
pallan pallan is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Location: Winnipeg, MB Canada
Posts: 44 pallan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 m 54 sec
Reputation Power: 8
Send a message via AIM to pallan
Thumbs down Still not working

This problem is still driving me nuts. I have been studying the supplied XML files a lot more and this is what I have found.

The DTD is in multiple files, but it does include all the required ENTITY declarations for &mdash and &dagger; (the ones I am having the trouble with). Everything I have tried so far has not worked and these symbols are not displayed. Other research recommended adding a DOCTYPE declaration in my XSL file and that didn't work either.

The supplied XML files can't be modified, for legal reasons, so I am dependant on XSL to get these entities to display and it still looks like they are being ignored or parsed out.

If this helps, I am using PHP with the built-in XSLT functions (sablotron + expat), but I have also tried it in a standalone parser using Sablotron and libxslt and none of them work.

Peer

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > XSL and HTML Entities are disappearing


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