Subject: Re: [xsl] Removing line breaks without normalize-space() From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Wed, 20 Sep 2006 10:51:11 +0530 |
Perhaps adding the instruction <xsl:strip-space elements="*" /> (as child of xsl:stylesheet) will solve the problem.
Hi,
Is there any way to remove line breaks without deleting the whitespace in-between elements? For example, suppose you started with the following XML:
<paragraph> <sentence>Some words are <i>italicized</i> and some words are in <b>bold</b>.</sentence> <sentence>Some words are <u>underlined</u>.</sentence> </paragraph>
I'd like to remove the line breaks, but otherwise retain any existing whitespace between elements, resulting in the following XML:
<paragraph><sentence>Some words are <i>italicized</i> and some words are in <b>bold</b>.</sentence><sentence>Some words are <u>underlined</u>.</sentence></paragraph>
I'm trying to avoid sentences whose contents run together when I process the text.
Thanks!
Mark
--
Mark Peters Senior Technical Writer Saba Software
-- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Removing line breaks with, Abel Braaksma | Thread | Re: [xsl] Removing line breaks with, Rashmi Rubdi |
Re: [xsl] XSLT engines and terminal, Michael(tm) Smith | Date | Re: [xsl] Removing line breaks with, Rashmi Rubdi |
Month |