xsl-list
[Top] [All Lists]

RE: Escape caracters

2004-05-26 23:41:00
Hi Ramkumar,
It does look like an entity reference... Even though I didn't find the ones I 
have on the w3.org website... For example '„', '“' or '"'.
These values are in the database, but when queried directly from the database 
and displayed on a web page, they are displayed as 'normal' caracters, but not 
in the XML document, nore after the parsing to an HTML page.
I use XMLSPY to transform XML to HTML.
Is there something that has to be specified in the XML/HTML or XSL document to 
resolve the entity references?
I've specified this in my XSL : <META HTTP-EQUIV="Content-Type" 
CONTENT="text/html; charset=UTF-8"/>
This is in my XML : <?xml version="1.0" encoding="UTF-8" standalone="no"?>
And this is generated in my HTML page : <?xml version="1.0" 
encoding="UTF-8"?><META HTTP-EQUIV="Content-Type" CONTENT="text/html; 
charset=UTF-8"/>

Does anybody know what could be wrong???

Thanks a lot!!!

 
Neil Smith
Analyste Programmeur
Université de Fribourg
Av. de l'Europe 20
CH - 1700 Fribourg
Tél. +41 26 300 7091

-----Original Message-----
From: Ramkumar Menon [mailto:ram(_dot_)menon(_at_)oracle(_dot_)com] 
Sent: mercredi, 26. mai 2004 16:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Escape caracters

Neil,
I suppose you are referring to entity references here.  I think the XML 
parser should have resolved all entity references in your XML that was 
imported [ I hope that was what you meant by "query to create an XML 
Document"] from the Database. So the Parsed XML Doc that is passed as 
the source tree for the XSLT wouldn't have any of these.

-Menon

SMITH Neil wrote:

Hi all!
I have a little problem with the transformation of text that was entered via a 
web page and stored in a DB that I query to create an XML document. This 
document is then parsed with XSL to HTML.
The thing is that in the DB, escape caracters (not even sure if that's what 
they should be called) such as " are stored like this : &quot;. Is it possible 
to convert all these into 'normal' text during the transformation? How can I 
do this?

Thanks a lot for your help
Best regards,
Neil.


Neil Smith
Analyste Programmeur
Université de Fribourg
Av. de l'Europe 20
CH - 1700 Fribourg
Tél. +41 26 300 7091

--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--


 



--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



<Prev in Thread] Current Thread [Next in Thread>