[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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).
At 02:28 PM 5/25/2005, you wrote:
RE: [xsl] How to trim leading and trailing spaces in xsl:attribute?
Subject: RE: [xsl] How to trim leading and trailing spaces in xsl:attribute? From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 25 May 2005 15:36:48 -0400 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] How to trim leading and t, JBryant | Thread | RE: [xsl] How to trim leading and t, Mukul Gandhi |
Re: [xsl] How to escape "$" in outp, Wendell Piez | Date | Re: [xsl] Flat to hierarchical with, Nadia . Swaby |
Month |
Keywords