[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Text output: CR LF
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 ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|