← Prev in month ← Prev in thread

RE: DOCBOOK-APPS: —

From
Jon Willeke <>
Date
2000-07-06T11:56:27+00:00
ID
Thread
RE: DOCBOOK-APPS: &mdash;
I don't understand what happens to character entities.  I have a document
with &eacute; and &mdash;.  When I convert it to HTML with the XSL DocBook
stylsheets, they pass through unchanged.  When I view the XML with Netscape
6PR1, nothing is displayed (although View Source shows &eacute; and &mdash;).

I changed an &eacute; to &#x00E9;.  When I convert it to HTML, it shows up
as &eacute;.  When I view it with NS6, it shows up as &#x00E9;.  Likewise
for &mdash; and &#x2014;.

What's doing the conversion: xt, the XSL stylesheets, the DTD, or the browser?

My ulterior motive is to the opposite of John's.  I want "--" in HTML,
because Netscape 4.x doesn't recognize &mdash;.  In short, <aol>Me,
too!</aol>.

At 02:35 PM 6/29/00 -0400,  wrote:
>Thanks for the answer. But, I actually want my XML data to still have
&mdash; and when I convert it using XSL, I'd prefer to have the &mdash;
replaced as &#x8212; instead of --
>
>-----Original Message-----
>From:  [mailto:]
>Sent: Thursday, June 29, 2000 10:46 AM
>To: Prabhu, John
>Cc: 
>Subject: Re: DOCBOOK-APPS: &mdash;
>
>On 27 Jun 2000  wrote:
>
>> I'd like to replace &mdash; with the hex decimal value &#x8212;
>> Currently, the XSL is converting this &mdash; as two hyphens (--), but
>> I prefer to have it as &#x8212; Could someone help me in which file
>> and and what exact change I should do?
>
>One possible solution is to redefine &mdash; in the internal markup
>section. This definition will override one defined in the DocBook
>DTD. E.g.:
>
><!DOCTYPE book "...." [
><!ENTITY mdash "&#x8212;">
>]>
><book>
> ...
></book>
>
>-----------------------------------------------------------------
>  Jirka Kosek  	                     
>  e-mail: 
>  http://www.kosek.cz
--
Jon Willeke, Quality Engineer
InterSystems Corp.
One Memorial Drive, Cambridge, MA 02142
← Prev in month ← Prev in thread