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

xml:space problem WAS : Problem with identity transfor

Subject: xml:space problem WAS : Problem with identity transform and Saxon
From: Kenneth Stephen <marvin.the.cynical.robot@xxxxxxxxx>
Date: Sat, 6 Aug 2005 10:54:34 -0500
xml space problem
Hi,

    Nevermind - I found the problem. I modified my stylesheet thus :

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:exsl-common="http://exslt.org/common"
	version="1.0">

	<xsl:variable name="rtf" xml:space="preserve">
		<a>
			<b />
		</a>
	</xsl:variable>

	<xsl:template match="/">
		<xsl:apply-templates select="exsl-common:node-set($rtf)" mode="t" />
	</xsl:template>

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

</xsl:stylesheet>

     And now, the stylesheet functions, but xml:space="preserve"
doesnt get respected. What could be the problem here?

Thanks,
Kenneth

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.