cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunsberger, Peter" <Peter.Hunsber...@stjude.org>
Subject RE: Accessing public static final constants from JXTemplate
Date Fri, 08 Aug 2003 20:59:07 GMT
Jeremy Quinn <jeremy@media.demon.co.uk> writes:

> 
> On Friday, August 8, 2003, at 08:36 PM, Hunsberger, Peter wrote:
> 
> > Jeremy Quinn <jeremy@media.demon.co.uk> writes:
> >
> >>
> >> OK, thats a bit clearer ;)
> >>
> >> But I still don't understand how I would go about using these 
> >> constants from inside JXTemplate XPath expressions.
> >>
> > I don't use JXTemplate, but I assume you've got a normal Cocoon 
> > generated input file and a Cocoon transform?  IF so, you 
> aggregate the 
> > XML file with the original source (as a simple File source) 
> and then 
> > you can use Xpath to access it's contents as well as the 
> contents you 
> > where previously using Xpath on...
> >
> >
> 
> No, I am using the JXTemplate Generator.
> 
> Thanks anyway

Hmm, you could still do it with a second transform pass if you had some
kind of place holders, but that seems a tad excessive (although the i18N
stuff might mean you don't need to write any code)...


Mime
View raw message