[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Re: unwanted ascii newline/cr characters in xml transformation


Subject: [xsl] Re: unwanted ascii newline/cr characters in xml transformation
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 29 Aug 2006 21:47:14 +0100

		<Component Name="{normalize-space(.)}">
That makes the Name attribute that you want
				<xsl:attribute name="Name"><xsl:value-of
select="title"/></xsl:attribute>
this replaces it with the one you had before, just delete these lines.

similarly you could write this:
					<Problem>
						<xsl:attribute
name="Description"><xsl:value-of select="title"/></xsl:attribute>

as
<Problem Description="(title}">
(or  better
<Problem Description="(normalize-space(title)}">
)

David


Current Thread