Subject: RE: Escape caracters
From: "Passin, Tom" <tpassin@xxxxxxxxxxxx>
Date: Thu, 27 May 2004 10:34:58 -0400
|
> From: SMITH Neil [mailto:neil.smith@xxxxxxxx]
> 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?
& 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.
> 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???
What is it that you think is wrong?
Cheers,
Tom P
| Current Thread |
- Escape caracters
- SMITH Neil - Wed, 26 May 2004 15:35:11 +0200
- <Possible follow-ups>
- 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
|
|