[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: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 25 May 2005 15:36:48 -0400
xsl text leading spaces
David,

Could you post the template or a big enough chunk of it so we can see how the <xsl:attribute> instruction is set up?

Ordinarily whitespace-only nodes are stripped from the stylesheet unless inside <xsl:text>, so we wouldn't expect to see what you're reporting. So there must be something special about your case (though you haven't described anything yet to account for it).

Regards,
Wendell

At 02:28 PM 5/25/2005, you wrote:
Using "normalize-space()" in my "xsl:value-of" element doesn't address
the issue.  It's not spaces in the variable I'm referencing that is an
issue, it's the spaces that I produce by adding a newline after
"<xsl:attribute ...>".  I thought your "useful shortcut" would solve my
problem, but that doesn't work for me.  It fails, saying "select" is not
a valid attribute for "xsl:attribute".

I would guess the only way to come close to addressing this is adding
the newline after "<xsl:value-of", as you did in your reply (either
intentionally or unintentionally), instead of after "<xsl:attribute
...>".



====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

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.