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

Identity Transform losing original line feed

Subject: Identity Transform losing original line feed
From: "Karl Stubsjoen" <kstubs@xxxxxxxxx>
Date: Fri, 18 Jul 2008 16:29:42 -0700
 Identity Transform losing original line feed
I have a number of xsl templates which I am running an identity transform on:

<xsl:template match="node() | @*">
    <xsl:copy>
        <xsl:apply-templates select="@* | node()" />
    </xsl:copy>
</xsl:template>


    <xsl:template match="xsl:import/@href | xsl:include/@href">
        <xsl:attribute name="href">
            <xsl:value-of select="concat('get?include=', .)"/>
        </xsl:attribute>
    </xsl:template>


The basic principle here, is preserve the original templates exactly,
but update the import and include href tag as specified.
So the transform works fine except that the line feed character is
changed after the transform.  My proof of this is a simple, open in
notepad, where before the transform I have line spaces, and after the
transform I do not.

So what gives?  What is happening to those line feeds?  Here is my output tag:


<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

Also note:  my stylesheets are created and edited in Oxygen.

Karl..

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.