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

Carriage return and line feed

Subject: Carriage return and line feed
From: Suli Ding <suliding@xxxxxxxxx>
Date: Sat, 6 Feb 1999 19:15:54 -0800 (PST)
line feed
Guys,

I am trying to convert data from:

<segment segment-id="GS" area="transaction-header" position="001"
name="Functional Group Header">
	<element reference="GS01" name="Functional Identifier Code">PO
	</element>
	<element reference="GS04" name="Date">960207</element>
	<element reference="GS05" name="Time">085415</element>
	<element reference="GS06" name="Group Control Number">11101</element>
	<element reference="GS07" name="Responsible Agent Code">
		<code name="Accredited Standards Committee X12">X</code>
	</element>
</segment>


to a string of character like:

GS*PO*field2*field3*960207*085415*11101*X%

Using an XSL like:

<xsl:template match="segment[attribute('segment-id')]"><xsl:value-of
select="@segment-id"/><xsl:for-each
select="element">*<xsl:apply-templates/></xsl:for-each>%
</xsl:template>

But I always have a ^M (carriage return/line feed)before each "*"
character. Can someone tell me what have I done wrong in my XSL? and
What is the correct one so ^M will not show up in the result data?

Thanks,

Suli


_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.