[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] Re: Using XT to process dynamically generated XML

Subject: [list4xt] Re: Using XT to process dynamically generated XML

User: Website

From: Leigh Dodds (ldodds@ingenta.com)
Date: 10/07/2001 - 14:29


The XSLProcessor accepts an InputSource as the source of the document.
You can create an InputSource from an InputStream or Reader.

So I'd do something roughly along the lines of:

String xml = "<foo/>";
StringReader reader = new StringReader(xml);
InputSource source = new InputSource(reader);

XSLProcessor processor = new XSLProcessorImpl();
processor.setParser(...);
processor.loadStylesheet(...);
processor.parse(source);

(omitting exception handlers, etc).

HtH,

L.

> -----Original Message-----
> From: list4xt-bounce@4xt.org [mailto:list4xt-bounce@4xt.org]On Behalf Of
> Berkey, Craig
> Sent: 10 July 2001 13:23
> To: list4xt@4xt.org
> Subject: [list4xt] Using XT to process dynamically generated XML
>
>
> We have an application that dynamically creates an XML as a String
> object, then uses an XSL processor/stylesheet to convert that XML into
> HTML. I've seen how other processors like LotusXSL/Xalan have an API
> that can perform a transformation on a such a dynamically generated XML
> String object, but all of the XT examples I have seen so far (like the
> XSLServlet) require a fixed XML file. I don't want to create temporary
> files for each XML String I generate. Does anybody know if (or know of
> any examples where) XT has the ability to perform a transformation on a
> dynamically generated XML that doesn't exist as a file on a machine?
>
> TIA
>
> --
> Mailing list for the XT users community. (http://fellspointfunfest.com)
> (mailto:list4xt-request@4xt.org?Subject=subscribe to unsubscribe)
>

--
Mailing list for the XT users community.     (http://mapletonchamber.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org