Posted on 2001-08-22
I'm using XSLT to transform an XML document into a new XML document. What I would like to know is if there is any way that I can perform some text manipulation on the contents of an element. Fore example, let's say I've got the following XML element:
IN the output document I would like this to appear as:
<time>July 23, 2001 at 7:41 PM</time>
While this is a date, what I'm asking is if applying a gnereic programmatic transform to element text is possible with XSLT? If not it seems to me that this would be quite a significant shortcoming.
Also, could someone give me an idea of a good way to do this while sticking with XML as my data source? I guess I could do it with straight DOM manipulation in Java, or XPath and Java? In which case I'd have to build the output document programatically. Any thoughts?