[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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..
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|