Subject: Re: [xsl] How to: Returning HTML Elements From a Saxon Extension Function (6.5.x) From: "W. Eliot Kimber" <eliot@xxxxxxxxxx> Date: Thu, 17 Apr 2003 16:28:14 -0500 |
1. Is my analysis correct or have I missed some easy way to return this markup?
2. If my analysis is correct, does anyone have an example of doing this sort of off-the-cuff SAX processing I could crib from? I didn't find any examples in the Saxon-supplied samples.
public NodeInfo generateResultTree(String markup) { java.io.ByteArrayInputStream bais = new ByteArrayInputStream(markup.getBytes()); org.xml.sax.InputSource isource = null; try { isource = new InputSource(bais); } catch (org.xml.sax.SAXException e) { e.printStackTrace(); } org.w3c.dom.Document root = new com.icl.saxon.om.DocumentBuilderImpl().parse(isource); return (NodeInfo)(root.getDocumentElement()); }
-- W. Eliot Kimber, eliot@xxxxxxxxxx Consultant, ISOGEN International
1016 La Posada Dr., Suite 240 Austin, TX 78752 Phone: 512.656.4139
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] How to: Returning HTML Elemen, W. Eliot Kimber | Thread | Re: [xsl] How to: Returning HTML El, W. Eliot Kimber |
Re: [xsl] Calling Java Xalan inside, john liao | Date | [xsl] Reusing XPath statements (def, Mitchell, David [CC] |
Month |