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

Re: trying to drop leading/trailing WS text nodes from

Subject: Re: trying to drop leading/trailing WS text nodes from verbatim
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 3 Sep 2003 13:13:12 +0100
trailing text
  Robert, if you try your solution you make conclude, as I did,
  that the spacing offsets the listings nicely, rather
  than 'mixing' them too closely with the surrounding text?

If you can rely on the linebreaks always being there this is probably
true (or at least you can set the top and bottom margins for the display
to take the blank line into account) however if sometimes it's there and
sometimes not you get a more consistent appearance if you always remove
the linebreak and then space accordingly.

The solution in the quoted  archive is a little more complicated than
needed as you don't need to test
starts-with($astr,'&#xA;') or
starts-with($astr,'&#xD;')">
as there won't be any #xD or #xA#xD pairs as the XML parser normalises
all line endings to #xA before XSLT starts.

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.