you're talking about executing the fragment rooted at the element, right?

for example if you have

<alpha>
        ...
        <beta>
                <jelly:stuff>
                        ...
                </jelly:stuff>
        </beta>
        ...
</alpha>

you want to run jelly on

<jelly:stuff>
        ...
</jelly:stuff>

as if that were a legitimate document.

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.

- robert

On 23 Mar 2004, at 13:45, Herve AGNOUX wrote:

Le Mardi 23 Mars 2004 13:41, peter royal a �crit :

What do you mean by "process the document" ?



I'm sorry, I don't speek english very well !


I have a XML document ; it's a sort of XML Script, but with a special langage
of my invention (like my english, of course). Inside it, some elements are
piece of jelly.


Ex :
<a><b><scriptjelly>...</scripjelly></b><c><otherscriptjelly>...</... etc


My program interprets "a", do something, then "b", do something, then I see a
jelly script, so I should want launch the jelly interpreter on this element,
and only this element, and so on.



-- 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]




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



Reply via email to