No, that's not correct behaviour. Sounds like I screwed up again :( Will look at it today. Chances are this newly introduced extension-element-prefixes filtering removes whitespace too.
Hmmm, actually I can't reproduce the problem. I just tried
foo.xml
<foo> </foo>
foo.xsl
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <out> <xsl:text> </xsl:text> <src><xsl:copy-of select="foo"/></src> </out> </xsl:template></xsl:stylesheet>
And get as expected
<out> <src><foo> </foo></src></out>
Show me your code.
<?xml version="1.0"?> <a/>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:import href="b.xsl"/> </xsl:stylesheet>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="text"/> <xsl:template match="*">(<xsl:text> </xsl:text>)</xsl:template> </xsl:stylesheet>
()
( )