xsl-list
[Top] [All Lists]

How to trim leading and trailing spaces in xsl:attribute?

2005-05-25 10:41:24
I have an "<xsl:attribute>" element in my stylesheet, and its value is
an "<xsl:value-of>" reference which then calls an XPATH function.  The
resulting single line is a little ugly.  I'd like to format the line so
it's a little more readable.  Unfortunately, I appear to be limited by
the semantics of the "<xsl:attribute>" element.  It does not trim
leading and trailing spaces, and it encodes any newlines found in the
resulting value.

I'm using JDK 1.4.2, in case there are constraints in the native TRAX
implementation inherent in that.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--