Re: [xsl] Getting a list of node Text()

Subject: Re: [xsl] Getting a list of node Text()
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 20 Jun 2007 13:49:43 +0100
> 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. 
________________________________________________________________________

Current Thread