[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] separating 'dirty' text nodes


Subject: [xsl] separating 'dirty' text nodes
From: "Lyublinski, Leonid" <Leonid.Lyublinski@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 27 Jan 2005 13:20:36 -0500

I'm trying to write a simple XSL which will copy XML file with extra
surrounding of all text nodes.
Here is an example
Source:
<a>
	Some text
      <b>
		more text
            <c>even more text</c>
      </b>
</a>

Desired copy:
<a>
   <text>Some text</text>
   <b>
      <text>more text</text>
      <c>
         <text>even more text</text>
      </c>
   </b>
</a>

Any help on the best way to do it would be greatly appreciated
Thanks



-----------------------------------------------------------------------------
-
CONFIDENTIALITY  NOTICE:   This message is  intended only for the use of
the  individual or  entity to  which it is  addressed  and  may  contain
information  that is privileged,  confidential or exempt from disclosure
by law.  If the reader of this message is not the intended recipient, or
the  employee  or agent responsible  for delivering  the message  to the
intended  recipient,  you  are  hereby  notified that  you are  strictly
prohibited  from   printing,  storing,  disseminating,  distributing  or
copying  this message.   If you have  received  this message  in  error,
please notify us immediately  by replying to the message and deleting it
from your computer.   Neither this information block,  the typed name of
the sender,  nor anything else in this message is intended to constitute
an electronic signature,  unless a specific statement to the contrary is
included in this message.  Thank you, Antares Management Solutions.
=============================================================================
=


Current Thread
Keywords