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

Re: removing crlf character with out white spaces

Subject: Re: removing crlf character with out white spaces
From: ram <ram_kurra@xxxxxxxxxxx>
Date: Thu, 11 Nov 2010 10:22:49 +0530 (IST)
Re:  removing crlf character with out white spaces
what exactly i am looking is my EDI format is going to be some thing like
this.  I want to remove the carriage returns and line spaces from this text.
There might be white spaces b/w ISA*00*         *00*   *zz*7654321
I am not
how many white spaces are going to come. 
                I dont want to
remove these whitespaces but want to remove the cr's n lf's

ISA*00*
*00*       *ZZ*7654321     *ZZ*1234567
*020503*1705*^*00401*000010232*0*P*:~GS*HC*7654321
*1234567*20020503*1705*20213*X*004010X096A1~ST*837
*0001~BHT*0019*00*123B*20010329*1310*CH~REF*87*004
010X096A1~NM1*41*2*SUBMITTER
ORGANIZATION*****46*ETIN123~PER*IC*SUBMITTER
CONTACT NAME*TE*SUBMITTER COMM
NUMBER-EMAIL~NM1*40*2*RECEIVER
ORGANIZATION*****46*ETIN123~HL*1**20*1~PRV*BI*ZZ*2
82N00000N~NM1*85*2*BILLINGPROVIDER
ORGANIZATION*****24*EID123456~N3*123
BILLINGPROVIDERADDRESS
LINE~N4*BILLINGPROVIDER
CITY*MD*34567~REF*1C*MEDICAREPN123~HL*2*1*22*1~SBR
*P*18*******MA~NM1*IL*1*SUBSCRIBER-LASTNAME*SUBSCRIBERFIRSTNAME*SUBSCRIBERMI*
**MI*MEM BERIDNUMBER123456789~N3*123
SUBSCRIBERADDRESS LINE~N4*SUBSCRIBER
--- On Thu, 11/11/10, Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx> wrote:
> From: Brandon Ibach <brandon.ibach@xxxxxxxxxxxxxxxxxxx>
> Subject: Re: 
removing crlf character with out white spaces
> To: "xsl-list"
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> Date: Thursday, 11 November, 2010, 9:57 AM
> Perhaps something like:
> 
>     <xsl:template match="text()">
>       
 <xsl:value-of select="translate(.,
> '

', '')" />
>     </xsl:template>
> 
>
-Brandon :)
> 
> 
> On Wed, Nov 10, 2010 at 11:09 PM, ram
<ram_kurra@xxxxxxxxxxx>
> wrote:
> > Hi,
> >         I am trying to write an
xsl which will
> take read text which is in EDI format and crlf characters.
>
My code is
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> >  
 version="1.0" xmlns:xalan="http://xml.apache.org/xslt">
> >
> >  
 <xsl:template match="text()">
> >        <xsl:value-of
select="normalize-space()"
> />
> >    </xsl:template>
> >
> >
> >  
 <xsl:template match="*">
> >        <xsl:copy>
> >            <xsl:copy-of
select="@*" />
> >            <xsl:apply-templates />
> >        </xsl:copy>
>
>    </xsl:template>
> > </xsl:stylesheet>
> >
> >             The
normalize-space() is removing
> all the crlf characters and also trimming
white spaces
> trimming into single space which i dont want to do it.
> > i
need only cr and line feeds needs to be removed. How
> can i do that.
> >
> >
> >
> >
>
--~------------------------------------------------------------------
> >
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> > To
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> > or e-mail:
<mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> > --~--
> >
> >
> 
>
--~------------------------------------------------------------------
>
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To
unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail:
<mailto:xsl-list-unsubscribe@xxxxxxxxxxxxxxxxxxxxxx>
> --~--

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.