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

Re: Text output: CR LF

Subject: Re: Text output: CR LF
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 15 Dec 2004 14:22:01 GMT
xslt 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"/>&#xD;
  </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
________________________________________________________________________

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.