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

removing crlf character with out white spaces

Subject: removing crlf character with out white spaces
From: ram <ram_kurra@xxxxxxxxxxx>
Date: Thu, 11 Nov 2010 09:39:22 +0530 (IST)
 removing crlf character with out white spaces
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.

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.