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

add text string to output instance on line basis

Subject: add text string to output instance on line basis
From: Michel Goossens <Michel.Goossens@xxxxxxx>
Date: Thu, 7 Oct 1999 15:06:34 +0100 (MET)
add text to string
Is there an easy way to include "something" at the beginning
of each "new line" when building the output tree instance.

For instance, if I have an input file containing the following:

<doc>
<foo>text on line 1
text on line 2
text on line 3</foo>
</doc>

I would like to get output like:

textfoo: text on line 1
textfoo: text on line 2
textfoo: text on line 3

Can I somehow trap the linefeed at the end of each line
and add the string "textfoo: " just following it?

Thanks for your help. mg

-------------------------------------------------------
Dr. Michel Goossens  Téléphone/Phone: (+41 22) 767-5028
IT Division          Télécopie/Fax:   (+41 22) 767-8630
CERN                 Courriel/Email:  goossens@xxxxxxx
CH-1211 Geneva 23  ou/or   F-01631 CERN Cedex
Switzerland                France



 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.