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

Re: Angle brackets and string manipulation

Subject: Re: Angle brackets and string manipulation
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 10 Mar 2003 11:24:37 -0700 (MST)
xslt angle brackets
Steve Rosenberry wrote:
> 
> Basic problem is that I had to resort to the always infamous
> disable-output-escaping to substitute a <br /> for a marker character(s)
> in a text() node string.  Did I happen upon an actual valid use of
> d-o-e, or am I missing better way to do this?

See http://skew.org/xml/stylesheets/linefeed2br/ for an example of using
recursion and XPath's substring functions to split a string on linefeed
characters, producing separate text nodes interspersed with empty 'br'
element nodes.

See also http://skew.org/xml/stylesheets/replace/ for a more generic example.
I think this is also in the FAQ.

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

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


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.