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

Re: How to trim leading and trailing spaces in xsl:at

Subject: Re: How to trim leading and trailing spaces in xsl:attribute?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 May 2005 10:24:09 +0100
trim space
  Hi Mike,
    Where we must specify xml:space="preserve" attribute
   (to preserve whitespace only text nodes in
   stylesheet)?


anywhere that is the parent of the node you want to preserve: each node
is considered separately.

  Would it be at this tag -
  <xsl:stylesheet xml:space="preserve" ...

You could do it there but as Mike said you probably don't want to do
that.

For example xsl:param has to be the first thing in a template but people
often go

<xsl:template name="x">
  <xsl:param name="y"/>

and if you don't ignore the white space node there then xsl:param is no
longer the first node, and it generates an error.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. 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
________________________________________________________________________

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.