Include an element like this as a child of xsl:stylesheet element:
<xsl:preserve-space elements="string" />
The value of the elements attribute should be space-delimitted list of the
elements which might contain only space characters in their child text() node.
--
Charles Knell
cknell(_at_)onebox(_dot_)com - email
-----Original Message-----
From: Lin, Jessica <jlin(_at_)solekai(_dot_)com>
Sent: Mon, 5 Mar 2007 11:28:11 -0800
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] how to reserve single space after transformation
Hi,
I am doing XML to XML transform by using saxon 8. But the result changed
from single space to empty space, could you please help me for this
problem?
<category_label>
<string> </string>
</category_label>
to:
<category_label>
<string/>
</category_label>
Thanks,
Jessica
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--