Subject: Re: Text output: CR LF
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 15 Dec 2004 14:22:01 GMT
|
there has already been a long thread on this this week!
see the archives for the thread
Re: MSXML -> XSLT -> and bloody \r\r\n and where do they come from? and what can I do about it!
Apart from the problem with newlines I'm surprised you get the output
that you state. (That output can not have come from the templates that
you posted)
<xsl:template match="NODE1">
<xsl:apply-templates select="//NODE2" mode="abc"/>
</xsl:template>
For each NODE2 this applies templates to all NODE3 anywhere in the
document, so I'd expect that you get each NODE3 processed twice (as you
have two NODE2's)
<xsl:template match="NODE2" mode="abc">
<xsl:value-of select="*//NODE3"/>
</xsl:template>
This applies templates to each NODE3 that is a grandchild of NODE1
and in your sample input NODE3 are all children not grandchildren, so
this will produce no output.
David
________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
|