commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: [jelly] [jsl] applyTemplates 'loses' the XMLOutput context
Date Thu, 21 Nov 2002 00:26:02 GMT
Man, you fix these things faster than I can investigate them :)

Thanks again!

"James Strachan" <> wrote on 21/11/2002 09:22:24 

> Hi dIon
> From: <>
> > When using a stylesheet it is *very* handy to be able to put the 
result of
> > a stylesheet into a variable or file.
> >
> > If a jsl:template has a core:file or core:set tag as the parent of the
> > applyTemplates, the output of the template processing is 'lost', i.e.
> > displayed on the screen, not sent to the file or variable.
> >
> > I've updated the suite.jelly for jsl's tests to show the 'bug'.
> >
> > Anyone out there who can suggest a workaround or fix?
> Thanks again for a great JellyUnit test case to demonstrate this bug.
> This bug was due to the Stylesheet not maintaining the current XMLOutput
> used when <applyTemplates> is invoked with a different XMLOutput to the 
> when the <style> tag was invoked. The way <j:set> works is by invoking 
> body into a new XMLOutput buffer which is why the variables weren't 
> set correctly.
> I've patched the code to fix this bug and added a few extra JellyUnit 
> for good measure to ensure this is truly licked.
dIon Gillard, Multitask Consulting

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message