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

Re: I don't get it... line breaks (sorry, I know this

Subject: Re: I don't get it... line breaks (sorry, I know this has been discussed many times)
From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
Date: Thu, 1 May 2003 09:23:35 -0700
strip line breaks
Thanks guys,
Okay, the indent="yes" didn't help.
The litteral &#10; did.

[David]
>ut by going  <xsl:for-each select="$xmTmplt/FLD"> you are just applying
>things to FLD element nodes and skipping over the text nodes in teh
>source, so they are not copied.

This makes total sense.

Karl


----- Original Message -----
From: "Mike Haarman" <mhaarman@xxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, May 01, 2003 8:34 AM
Subject: Re:  I don't get it... line breaks (sorry, I know this has
been discussed many times)


> ----- Original Message -----
> From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxx>
>
> > Ok, I have the following "for-each" which calls a template, the template
> > returns a hidden form variable.  When I *View Source* all of the
elements
> > appear on the same line.  I mean, this isn't a horrible thing, but I'd
like
> > to know how to control this behaviour.  I'm guessing that when you
> > "apply-templates" that the loop which occurs naturally (and I call it a
> > "natural" loop for lack of a better term) there in the match creates
line
> > breaks in the source.  Correct?
>
> http://www.w3.org/TR/xslt#strip
>
> 1) use xsl:text to hold breaks;
> 2) use direct character reference to your EOL of choice;
> 3) specify element names which hold or strip space in a space separated
list
> within the attributes xsl:strip-space and xsl:preserve-space.  The latter
allows
> for whitespace in the instance XML to slip past the mechanism implementing
3.4
> above.
>
> hth,
>
> Mike
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>


 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.