|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








