Subject: [xsl] unwanted ascii newline/cr characters in xml transformation From: "Ann Marie Rubin \(anrubin\)" <anrubin@xxxxxxxxx> Date: Tue, 29 Aug 2006 13:34:27 -0700 |
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 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: [xsl] Ann Marie Rubin (anrubin) <Component Name="{normalize-space(.)}"> ....
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] gaps in output, Emily.Garrett | Thread | [xsl] Re: unwanted ascii newline/cr, David Carlisle |
Re: [xsl] gaps in output, Abel Online | Date | [xsl] Re: unwanted ascii newline/cr, David Carlisle |
Month |