This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Normalizing string containing entities


Does anyone know a simple way to normalise strings containing entities and
subelement ?

Using normalize-space on a string containing entities or subelements will
strip the spaces before and after every entities/elements.

Consider, for example, the following:

<para>Some    text    <em>some    other   text</em>   remaining  text</para>

How can I normalize this into :

<p>Some text <i>some other text</i> remaining text</p>

The answer I found in several books is that we should not have elements
mixing CDATA and subelements. If we apply this rule, it is impossible to
represent the real structure of text.

Any idea ?

Pierre-Yves


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]