Subject: RE: Normalizing string containing entities From: "Pierre-Yves Saumont" <pys@xxxxxxxx> Date: Wed, 19 Jul 2000 16:23:12 +0200 |
Thank you very much for your help. In fact, I need to get one space between each word where there was at least one space in the document. So : some <em>text some <em> text some<em> text should all result in : some <em>text but : some<em>text should not be changed. I think I can get it to work now. Thanks again, Pierre-Yves -----Message d'origine----- De : owner-xsl-list@xxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]De la part de Wendell Piez Envoyé : mardi 18 juillet 2000 11:29 À : 'xsl-list@xxxxxxxxxxxxxxxx' Objet : Re: Normalizing string containing entities [cut] <x> <para>Some text <em>some other text</em> remaining text</para> <para>Some text<em> some other text</em> remaining text</para> <para>Some text <em> some other text</em> remaining text</para> <para>Some text <em>some other text </em> remaining text</para> <para>Some text <em>some other text </em>remaining text</para> <para> Some text <em>some other text</em> remaining text </para> </x> We get output (using Saxon) <x> <para>Some text <em>some other text</em> remaining text</para> <para>Some text<em>some other text</em> remaining text</para> <para>Some text <em>some other text</em> remaining text</para> <para>Some text <em>some other text</em> remaining text</para> <para>Some text <em>some other text</em>remaining text</para> <para>Some text <em>some other text</em> remaining text</para> </x> If you wanted to get space before the <em> element in the second case or after in the fifth case, the logic could be extended to catch them (left as an exercise :-). XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Normalizing string containing e, Wendell Piez | Thread | One XSL combining to different XMLs, SoftLiban DACCACHE W |
Xalan and apply-templates, Craig Jardine | Date | Re: Xalan and apply-templates, David_Marston |
Month |