[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Replace Special Characters: return, blank and tab

Subject: Re: Replace Special Characters: return, blank and tab
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 5 Aug 2004 23:25:05 +0100
xml replace special characters
> Otherwise, I don't know how to insert "<" and ">" without escaping them,

you don't want to insert those characters you want to insert a br node,
just put a br node as the content of with-param not using the select
attribute, as I showed.

> It is a good idea to match the "&#10;" too, but now I cannot even make the
> "&#13;" working

It is _most_ unlikely that there are any #13 in the XML file, the XML
spec specifies that all line endings (dos/mac/unix format) are all
reported as #10 howeverthey are in the source.

If you are losing element markup then usual reasons are applying
xsl:value-of  which gives the string value (or string ops such as
substring-before which also force a string value) or using the text
output method. Your replace template would get rid of any markup in its
input (as that passes through substring but I thought you had it nested
such that adding <br/> was the last thing you do.

Sorry its too late for debugging your code tonight, the faq for this
list has a replace template that does work, as does Jeni's site.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.