On 03.Jun.2003 -- 02:16 PM, Mato Mira, Fernando wrote:
> > From: Christian Haul [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, June 03, 2003 1:14 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: inserting XML fragments in XSP
> > 
> > 
> > On 03.Jun.2003 -- 12:49 PM, Mato Mira, Fernando wrote:
> > > What's the correct Java translation of:
> > > 
> > > <util:include-expr expr="foo"/> ?
> > > 
> > > I can write the expansion directly in the page for now.
> > 
> > Won't help, but here it is:
> > 
> >       XSPUtil.includeString(String.valueOf(foo), 
> > this.manager, this.contentHandler);
> > 
> 
> It works. Thanks.

Blimey! I thought the error lies in the parser... well, so it is clear
where the "error" lies. According to some old docs (1.x) this was
meant to include literals. Which is IMO stupid because a literal could
be included by putting it on the page, no need for this tag.

Anyway, I have changed the util.xsl so that the above works now with
the current 2.1-dev version. In addition, I have removed the necessity
to use <xsp:expr/> around the variable in the other case.

HTH

        Chris.
-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

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

Reply via email to