James,

> From: James Strachan [mailto:[EMAIL PROTECTED]]
> 
> From: "Wannheden, Knut" <[EMAIL PROTECTED]>
> > I just read the new article about the Jelly XML pipeline at
> > http://jakarta.apache.org/commons/sandbox/jelly/pipeline.html.
> >
> > <my:tag>
> >  <j:set var="x" value="y"/>
> > </my:tag>
> >
> > the <my:tag/> would retrieve its body as a Script.  For 
> this Script it
> could
> > either request the associated XML code or evaluate it (and 
> optionally get
> > the output).
> 
> Actually a tag can get its body as a Script and walk it if it 
> wishes. So it
> could analyse the tags inside it and do wacky things if so desired.
> 

But what I was trying to ask is whether a Tag could do something more
simple: get its body as XML.  So as in the example I gave <my:tag/> would in
doTag(XMLOutput) call something like getBodyXML() which would return a dom4j
Document representing <j:set var="x" value="y"/>.  Because calling
getBodyText() would yield null.  Even nicer maybe would be if
getBody().getXML() were possible.  I guess the returned document would
either have to be a List of elements or a document with a dummy root.

--
knut

Reply via email to