commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@multitask.com.au
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" <james_strachan@yahoo.co.uk> wrote on 21/11/2002 09:22:24 
AM:

> Hi dIon
> 
> From: <dion@multitask.com.au>
> > 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 
one
> when the <style> tag was invoked. The way <j:set> works is by invoking 
its
> body into a new XMLOutput buffer which is why the variables weren't 
being
> set correctly.
> 
> I've patched the code to fix this bug and added a few extra JellyUnit 
tests
> for good measure to ensure this is truly licked.
--
dIon Gillard, Multitask Consulting
Blog:      http://www.freeroller.net/page/dion/Weblog
Work:      http://www.multitask.com.au


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message