Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 24th, 2007, 01:19 AM
Authorized User
 
Join Date: Feb 2007
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Default how to insert new line

suppose one of my xml node value is...

select c.dept_name, a.transaction_no, a.transaction_date, f.store_name,
          d.item_description, e.unit_description, b.qty, b.sales_price, b.qty*b.sales_price value
from transaction_header_tab a, transaction_detail_tab b, department_tab c,
          item_master_tab d, unit_master_tab e, store_master_tab f
where a.transaction_date >= :p_start_date and
           a.transaction_date <= :p_end_date and
           a.transaction_type = 'I' and
           a.destination_store_code = c.dept_code


i want to put &amp;#10; before every line in xslt 1.0....how can i chive this? is there any way?
 
Old February 24th, 2007, 06:04 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

String manipulation is much easier in XSLT 2.0. For 1.0, look at the library routines available at www.exslt.org, for example str:tokenize, str:split. Some of these have implementations as XSLT source code templates which you can copy directly into your stylesheet.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
insert a new line at beginning of text file? how? Satorikin VB.NET 2002/2003 Basics 8 October 15th, 2008 09:55 PM
How to draw indicator line in owc line chart AlexOo General .NET 0 July 9th, 2007 10:32 PM
How to read file line by line in EVC++ iriskab Visual C++ 0 September 27th, 2006 01:39 PM
Reading line by line from a .txt file x_ray VB.NET 2002/2003 Basics 5 February 10th, 2006 01:55 PM
how can I insert a new line at top of text file? Satorikin VB.NET 1 March 4th, 2004 03:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.