Subject:creating escaped XML Author:dave livingston Date:22 Jan 2007 09:28 PM
I've ran into something that surely has to be very simple but I'm at my wits end to figure it out. I am far from an XSLT guru so I thought I would ask some others.
The system that I am working with has now decided that the messages coming in have to a text string "to seperate the date from the transport" argghh
I have all of my stylesheets set up and they work well, but now I am supposed to send all of the data "escaped"...I don't want to have to rewwrite them...is there not an easy way to simply take an XML document and write it out so that all of the things are escaped?
Subject:creating escaped XML Author:Tony Lavinio Date:25 Jan 2007 06:05 PM
There isn't an easy way to do this with XSLT tools.
You could, I suppose, build a generic stylesheet that
would basically serialize the XML, writing < plus
the element name plus > and then writing any attributes
manually and then calling itself for any nested children.
You might try asking this on the XSL-LIST; I seem to
recall someone posting a snipped of code to do something
similar.