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

RE: xpath: use translate() convert vbCrLf to <br>

Subject: RE: xpath: use translate() convert vbCrLf to <br>
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>
Date: Tue, 23 Mar 2004 13:51:16 -0800
xpath translate
Try this link:
http://www.dpawson.co.uk/xsl/sect2/replace.html#d7115e13

translate() is not a pattern matching function, it takes a list of characters and replaces those characters from the list of supplied characters.

http://www.w3.org/TR/xpath#function-translate

<snippet>
The translate function returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string. For example, translate("bar","abc","ABC") returns the string BAr.
</snippet>

Josh

-----Original Message-----
From: R. Erick Emde [mailto:emder@xxxxxxxxxxxxxxxxxx]
Sent: Tuesday, March 23, 2004 11:51 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  xpath: use translate() convert vbCrLf to <br>


Hi there,
I'm exporting data from Access to XML. Most everything is ok, but I have
a memo field that has carriage returns (vbCrLf) in it. The carriage
returns show up in the exported XML. I need to replace them with
'&lt;br>'. I'm trying to use xpath translate(), but I can't figure out
the pattern for it to match on.
Any ideas?
TIA,
Erick

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.