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

RE: unwanted ascii newline/cr characters in xml trans

Subject: RE: unwanted ascii newline/cr characters in xml transformation
From: "Ann Marie Rubin \(anrubin\)" <anrubin@xxxxxxxxx>
Date: Wed, 30 Aug 2006 06:26:10 -0700
ascii newline
 Thanks David.  This worked!

Regards,

Ann Marie


-----Original Message-----
From: Ann Marie Rubin (anrubin)
Sent: Tuesday, August 29, 2006 4:34 PM
To: David Carlisle; xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: Ann Marie Rubin (anrubin)
Subject: unwanted ascii newline/cr characters in xml transformation


Hi David,

Thanks for your reply. I tried your suggestion but the unwanted
newline/cr characters still appear in the output xml file. This is the
code I tried (showing the complete template rule.)

	<xsl:template name="components">
		<xsl:for-each select="//troubleshootingcategory">
		<Component Name="{normalize-space(.)}">
				<xsl:attribute name="Name"><xsl:value-of
select="title"/></xsl:attribute>
				<xsl:for-each
select="./troubleshootingentry">
					<Problem>
						<xsl:attribute
name="Description"><xsl:value-of select="title"/></xsl:attribute>
						<xsl:call-template
name="symptom"/>
						<xsl:call-template
name="cause"/>
						<xsl:call-template
name="action"/>
					</Problem>
				</xsl:for-each>
			</Component>
		</xsl:for-each>
	</xsl:template>

Excerpt from source xml:
		<troubleshootingcategory>
			<title>Sample
Title Text</title>

Exceprt from result xml:

<Component Name="Sample&#13;&#10;Title Text">

Regards,

Ann Marie

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Tuesday, August 29, 2006 12:43 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Cc: Ann Marie Rubin (anrubin)
Subject: Re:  Ann Marie Rubin (anrubin)


<Component Name="{normalize-space(.)}">
....

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.