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

Re: How to transform XML to EDI format?

Subject: Re: How to transform XML to EDI format?
From: William Lam <xeenman@xxxxxxxxx>
Date: Mon, 27 Aug 2001 16:23:39 -0700 (PDT)
edi format
Try adding a &#10; in your style sheet ...

--- "Uslu, Cihan Y (MED)" <Cihan.Uslu@xxxxxxxxxx>
wrote:
> Hi,
> I am trying to convert XML document to EDI format in
> my new project and
> I have some questions;
> 
> End of line character: When I try to convert a small
> portion of XML to
> EDI format and open it in notepad, everything is in
> one line there is no
> line break. How Can I put line breaks-end of line
> characters in XSL. 
> Here is a portion of a code from XML and my xsl file
> and the output I
> get when I open it in notepad. (I save my output in
> "test.edi" format
> and open it in notepead and I get one line of
> output, on the other hand
> if I open the same output in MS Word I get the end
> of line character
> working. 
> I've tried xalan and saxon and got the same
> results..
> How would I get my output to have the end of line
> when I open it with
> notepad. 
> 
> Thanks...
> 
> 
> 
> xsl file:
> <?xml version="1.0"?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="text" encoding="us-ascii" />
> 	<xsl:template match="/">
> 	
> <xsl:text>START-CRSE-RECORD</xsl:text><xsl:text>
</xsl:text>
> 	  
>
<xsl:text>CRSE-CD=LOCAL-CRSE-CD=</xsl:text><xsl:value-of
> select="/course/@courseNum"/><xsl:text>
</xsl:text>
> 	</xsl:template>
> </xsl:stylesheet>
> 
> ------------
> xml file
> ------------
> <?xml version="1.0"?>
> <course courseNum="EDITEST"> 
>   <module test-type="T"> 
> 	 <title> 
> 		<para>Test-out</para> 
> 	 </title> 
> 	 <intro> 
> 		<para>This is the test-out module.</para> 
> 	 </intro> 
>   </module>
> </course>
> 
> ---------
> output
> ---------
> START-CRSE-RECORD CRSE-CD=LOCAL-CRSE-CD=EDITEST	
> 	
> 
> 
> 
>  XSL-List info and archive: 
> http://www.mulberrytech.com/xsl/xsl-list
> 


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.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.