[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Reparsing Embedded XML
> > I've got XML that has more XML embedded as strings. > <doc> > <field><anotherField>data</anotherField></field> > </doc> > > I need to be able to format the stuff inside the field. It's > good XML. The > document() function looks close, but it wants a URI, not a string. > > Is there some way for me to run a transform on that string? > Saxon has an extension function saxon:parse(), specifically written for people who have to cope with such appallingly designed source documents. Just extract a string containing raw XML, pass it to saxon:parse, and you get back the document node of a tree representation of the XML. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|