But, wouldn't the following strip the lead and trailing space
for the element?
<xsl:strip-space elements="Calculation"/>
No it would have no effect at all on the input you posted,
strip space ignores white space nodes used for indentation
so
<Calculation>
<x>aaa</x>
<b>bbb</b>
</Calculation>
would be treated like <Calculation><x>aaa</x><b>bbb</b></Calculation>
But you have
<Calculation>
<![CDATA[zzzz]]>
</Calculation>
which is reported to XSLT as
<Calculation>
zzzz
</Calculation>
so strip-space has no effect, as there are no text nodes consisting just
of white space.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--~------------------------------------------------------------------
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>
--~--