Click to See Complete Forum and Search --> : Replacement of  


amitg
July 18th, 2002, 02:36 AM
Hi

I am a beginner to XML. I was trying to use   in XSLT. But XSLT does not support  . What should I use to put a space in XSLT.

Thanks in advance

Amit

dkar
July 18th, 2002, 03:43 AM
In any XML if you want to preserve space you should use the attribute xml:space="preserve"

<aaa xml:space="preserve"> </aaa>

The same with XSL:

<xsl:element name="aaa" xml:space="preserve"> -same spaces- <xsl:apply-templates select="*"/></xsl:element>