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

Re: XSLT Recursive Templates

Subject: Re: XSLT Recursive Templates
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 27 Jun 2003 10:53:42 +0100
xslt recursive example


> XSLT does not recorgnise carriage returns, hence i was
> forced to use the following recursive template:

You are mistaken. an XML parser normalises various line end conventions
to a single #10 character. XSLT does recognise that.

It does not of course convert text between blank lines into paragraph
elements, but then neither did your suggested alternative.
To say that one piece of code is quicker than another that does
something entirely different isn't very informative.

Of course if you are in a situation where you want "<pre>" style
formatting, with all white space preserved, and no autonmatic line
wrapping, then that's what you should do, either by using pre, or
equivalent css properties, which is what your example did.

If however what you want is paragraphs that act as html paragraphs (and
this is the normal situation, I find), then that is not what you should
do.

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
________________________________________________________________________

 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.