OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: RE: DOCBOOK-APPS: —

I don't understand what happens to character entities.  I have a document
with é and —.  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 é and —).

I changed an é to é.  When I convert it to HTML, it shows up
as é.  When I view it with NS6, it shows up as é.  Likewise
for — and —.

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,

At 02:35 PM 6/29/00 -0400, John.Prabhu@macmillanUSA.com 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: jkj@kosek.cz [mailto:jkj@kosek.cz]
>Sent: Thursday, June 29, 2000 10:46 AM
>To: Prabhu, John
>Cc: docbook-apps@lists.oasis-open.org
>Subject: Re: DOCBOOK-APPS: &mdash;
>On 27 Jun 2000 John.Prabhu@macmillanUSA.com 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;">
> ...
>  Jirka Kosek  	                     
>  e-mail: jirka@kosek.cz
>  http://www.kosek.cz
Jon Willeke, Quality Engineer
InterSystems Corp.
One Memorial Drive, Cambridge, MA 02142

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC