[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Reparsing Embedded XML
Subject: RE: [xsl] Reparsing Embedded XML From: "Michael Kay" <mhk@xxxxxxxxx> Date: Thu, 10 Apr 2003 23:18:02 +0100 |
> > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Reparsing Embedded XML, LeVan,Ralph | Thread | RE: [xsl] Reparsing Embedded XML, Passin, Tom |
Re: [xsl] How to render TEI <div*>s, Wendell Piez | Date | RE: [xsl] An eseay question., Michael Kay |
Month |
Keywords