Le Mardi 23 Mars 2004 20:59, robert burrell donkin a �crit :
>
> you want to run jelly on
>
> <jelly:stuff>
>       ...
> </jelly:stuff>
>
> as if that were a legitimate document.
>

Exactly.


> i'm not a jelly expert, but to me the obvious way to integrate jelly is
> by forming some kind of pipeline from the fragment. if you're using SAX
> then i think that you should be able to create a Script object from a
> (jelly) XMLParser. then run the script. if not, then you might consider
> creating SAX events from the fragment. the rest of the integration
> problem depends on the way your language processes the xml.
>
> hope this helps.
>

You have the magicals words !

If I summarize :

1) With a SAXParser (for instance), I create a 
org.apache.commons.jelly.parser.XMLParser.

2) With it, I get a org.apache.commons.jelly.Script (method "parse").

3) I run this script, and I hope than I can create a JellyContext and an 
XMLOutput from scratch.

Is it a good road ?


-- 
SARL diaam informatique - 04 50 44 26 54
Ingenierie, d�veloppements de syst�mes d'information
http://www.diaam-informatique.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to