RE : [xsl] white space removal

Subject: RE : [xsl] white space removal
From: Philippe Barthélémy <philippe.barthelemy@xxxxxxxxxx>
Date: Mon, 30 Jul 2001 16:56:27 +0200
Well, I do not understood the answer.

Let's say my XML looks like :
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="testxslt.xsl"?>

let's say my XSL looks like :
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	<xsl:output method="xml" version="1.0" encoding="UTF-8"
	<xsl:template match="toto">

Then my XSL output looks like :
<?xml version="1.0" encoding="UTF-16"?>


And I would have liked to have :
<?xml version="1.0" encoding="UTF-16"?>kjlkjlkkjlkjlkkjlkjlk
That is none of the white spaces in the XSL finding their way in the XSL

Is that feasible ?

Thanks in advance.


-----Message d'origine-----
De : Michael Kay [mailto:mhkay@xxxxxxxxxxxx] 
Envoyé : lundi 30 juillet 2001 12:35
À : xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Objet : RE: [xsl] white space removal

> This sheet is quite long, so for the sake of clarity, the XSL code is
> indented. The problem is that all the tabs and carriage
> returns that are
> in the XSL code are "copied" in the RTF output. This is something I do
> not want.

Only those that are in the same text node as a non-whitespace character
be copied.

The solution is to wrap all significant text (that you do want output)
<xsl:text> elements.

Mike Kay
Software AG

 XSL-List info and archive:

 XSL-List info and archive:

Current Thread