cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicola Ken Barozzi" <nicola...@apache.org>
Subject Re: Might have a Problem with Caching (xsp/xsl)
Date Wed, 06 Mar 2002 07:45:57 GMT
From: "Vadim Gritsenko" <vadim.gritsenko@verizon.net>

> > From: Nicola Ken Barozzi [mailto:nicolaken@apache.org]
> >
> > From: "Torsten Reiners" <t.reiners@tu-bs.de>
> >
...
> > > 2:  We want to set a xsl:variable to the value of the variable of
> > > "msg" being part of the xsl:logic.
> >
> > It's not possible, if I understand correctly.
> > XSPs are handled as "marcos". All XSL is resolved at compile time,
> > while logic at execution time.
>
> You forgot to mention logisheets. AFAIU, he need logicsheet.
> See
> http://cvs.apache.org/viewcvs.cgi/xml-cocoon2/src/webapp/docs/samples/xs
> p/logicsheet.xsp?rev=1.3&content-type=text/vnd.viewcvs-markup

Hmm...

I saw a "xsl:variable" and thought it was in a logicsheet, since logicsheets
are xsl files themselves.

The thing I note is that he specified

> > >        <xsl:variable name="toInsert">
> > >            <xsp:expr> msg  </xsp:expr>
> > >        </xsl:variable>

Since xsp:expr is resolved at runtime, the variable will not contain the
value of the expression but the java code to get it.
Hence my answer.

Torsten, it seems I didn't fully understand your question, sorry.
Why do you want to include another file with xsl document()?
You could use XInclude, CInclude or sitemap aggregation (described in the
documentation) and bypass this problem altogether.

--
Nicola Ken Barozzi                   nicolaken@apache.org
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
--------------------------------------------------------------------


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message