xsl-list
[Top] [All Lists]

RE: Escape caracters

2004-05-28 08:00:13
From: Passin, Tom [mailto:tpassin(_at_)mitretek(_dot_)org] 

From: SMITH Neil [mailto:neil(_dot_)smith(_at_)unifr(_dot_)ch]

How come I get these character references in the HTML file I 
am generating then? Is there something I forgot to specify 
during translation or something I forgot in the XSL file?


The serializer would output a character reference when the encoding it
is using does not support the character in question.  The only thing
you
could change would be the encoding specified in the xsl:output element.
But there is probably no reason to worry about it.  A browser will
usually display what you want, unless the font it is using does not
have
a glyph for the character.  In that cse, it could not display the
character no matter how it was encoded.

Why do you care whether there are character references in the html
output?  Is it just to make it easier for you to read when you look at
the source?

Cheers,

Tom P

The problem is that these caracters appear in the browser to (ie and
mozilla)... And this file is used to create a report... So I can't
really leave them... Do you want to have a look at the XSL and XML
documents? I maybe got something wrong in one of them...

Cheers,
Neil.



-----Original Message-----
From: Passin, Tom [mailto:tpassin(_at_)mitretek(_dot_)org] 
Sent: jeudi, 27. mai 2004 16:35
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Escape caracters

From: SMITH Neil [mailto:neil(_dot_)smith(_at_)unifr(_dot_)ch]

& q u o t e ; and & a m p ; (spaces added) are built into xml 
(along with three others) by its specification and are 
understood by all xml parsers. Things like & # 8 2 2 2 ; 
(which are called "character
references") are also defined by the xml specification.  HTML 
also understands them.  So there is nothing special to do.  
HTML-specific entities like & n b s p ; are specific to html 
and xhtml. 


--+------------------------------------------------------------------
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>