Subject: [xsl] Fwd: white space in MSIE From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 02 Dec 2002 13:34:52 -0500 |
Thanks--! Wendell
Sender: "TEI (Text Encoding Initiative) public discussion list" <TEI-L@xxxxxxxxxxxxxxxxxx> From: "Rafal T. Prinke" <rafalp@xxxxxxxxxx> Subject: white space in MSIE To: TEI-L@xxxxxxxxxxxxxxxxxx X-Loop-Detect: 1
This question should perhaps be asked elsewhere - but I think it might be of interest to other TEIers.
I intend to put some raw TEI/XML texts on-line to be browsed with MS IE. I am now struggling with XSLT stylesheets and encountered a problem of a single white space (ie. just a space) between two elements. For example:
<p> Colonel <persName> <foreName>John</foreName> <surname>Smith</surname> </persName> was born in 1875. </p>
is displayed as:
Colonel JohnSmith was born in 1875.
ie. with all spaces normalized except for the one which is the only character between two elements - with no textual data there.
When the same fragment is transformed with Saxon, that space is preserved.
Is there any easy way to achieve the desired effect in MS IE without changing the source?
It can be done inserting the space *inside* one element:
<foreName>John </foreName><surname>Smith</surname>
but I don't like this solution as intuitively the space does not belong in either of the two elements.
Best regards,
Rafal
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] convert an attribute's va, Jeni Tennison | Thread | Re: [xsl] Fwd: white space in MSIE, David Carlisle |
Re: [xsl] convert an attribute's va, David Carlisle | Date | [xsl] Regex-Enabled XSLT is Possibl, Gunther Schadow |
Month |