Michael and Chuck,
I think I am beginning to see the XSL light. You are
correct the <xsl:strip-space> element doesn't seem to conflict with the
entities. I was having a problem displaying the quote entities in Netscape and
not realizing that it was the browser that was causing the problems, not the XSL
code. IE displays the entities correctly in decimal or named format.
Netscape will display them correctly if the decimal codes are used. Also I
have noticed, as you pointed out Michael, that the SAX XSLT processor doesn't
like the stylesheets that Chris Prom created. They work with XT just fine.
Chuck, I noticed that older versions of XMetal don't accept the
named equivalents for entities, but the version I have, 2.1,
does.
Ok, now I'm off to figure out why my "odd" appendixes (marked
up as Chronlist) are not displaying correctly in Netscape (of course they
look great in IE !?!)
Thanks for your help,
Loren
-----Reply to Original Message-----
From: "Fox, Michael" <[log in to unmask]>
Date:
12/4/01 11:28AM
Subject: Re: Cookbook stylesheet
question
The <xsl:strip-space> element deletes whitespace between
elements that may
have been added during the creation of the XML file as well
as whitespace
that exists within elements that do not contain any
text. It does not
remove whitespace within elements that also
contain text as XML considers
such whitespace to be significant.
It simply makes the file more compact.
It should not affect any text or entity references such as you
indicate.
It may be that the XSLT processor you are using behaves in a
non-standard
way. In any event, there would no harm
to omitting it from the
stylesheet.
Have you tried using the decimal form of these entities,
“ and ”
instead of the named version?
Michael
Michael J. Fox
Assistant Director for Library and
Archives
Minnesota Historical Society
345 Kellogg Blvd West
St. Paul,
MN 55102-1906
651-296-2150 (phone)
651-296-9961 (fax)
[log in to unmask]
-----Original Message-----
From: Loren Scherbak
[mailto:[log in to unmask]]
Sent: Tuesday, December 04, 2001 10:12
AM
To:
[log in to unmask]Subject:
Cookbook stylesheet question
Hi all,
We are slowly getting up to speed with the Cookbook. I have
been trying to
understand the stylesheets. I have one very basic question.
Why is the line
<xsl:strip-space elements="*"/> included? It
seems to mess up my use of
special character codes like ”
and “ for quotes.
TIA,