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

Re: xsl:output element

Subject: Re: xsl:output element
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 2 Dec 2003 15:03:22 GMT
xsl output no elements
> I am not sure what to put in the ouput element under stylesheet delaration 
> in order to get the output to look like this:


You have <xsl:value-of select="entrydata/text" /> and your text nodes
have a line end after the comma, so your result tree should have a #10
character after each comma.
If you are using the xml or html output methods then a #10 in the result
tree may be serialised as #10 or #13 or a #10#13 pair depending on the
whim of your system. These days most editors will display any of these
combinations as a line end, given a bit of encouragement.

Of course if you produce html and look at it in a browser, a newline
renders as a space, as always in html.

> i tried using  method="html" and indent="yes" but it doesnt work?

indent=yes allows the system to indent elements in places where the
extra white space would not affect the rendering in a browser. But your
stylesheet produces no elements, so indent=yes does nothing.


I cut your example from your mail and ran it through saxon, and got
linebreaks as expected:

$ saxon v.xml v.xsl
<?xml version="1.0" encoding="utf-8"?>
1,
1.1,
1.1.1,

1.1.2,

1.1.3,


1.2,
1.2.1,


1.3,
1.3.1,

1.3.2,

1.3.3,

1.3.4,



David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
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.