Subject: RE: Escape caracters
From: "SMITH Neil" <neil.smith@xxxxxxxx>
Date: Fri, 28 May 2004 17:00:13 +0200
|
>From: Passin, Tom [mailto:tpassin@xxxxxxxxxxxx]
>
>> From: SMITH Neil [mailto:neil.smith@xxxxxxxx]
>
>> 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@xxxxxxxxxxxx]
> Sent: jeudi, 27. mai 2004 16:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: RE: Escape caracters
>
> > From: SMITH Neil [mailto:neil.smith@xxxxxxxx]
>
> & 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.
| Current Thread |
- RE: Escape caracters, (continued)
- SMITH Neil - Thu, 27 May 2004 08:41:00 +0200
- Passin, Tom - Thu, 27 May 2004 10:34:58 -0400
- SMITH Neil - Fri, 28 May 2004 08:21:40 +0200
- Passin, Tom - Fri, 28 May 2004 10:30:35 -0400
- SMITH Neil - Fri, 28 May 2004 17:00:13 +0200 <=
- Passin, Tom - Fri, 28 May 2004 11:20:24 -0400
- SMITH Neil - Fri, 28 May 2004 17:30:45 +0200
- Passin, Tom - Fri, 28 May 2004 11:55:38 -0400
|
|