From: "Vadim Gritsenko" <[EMAIL PROTECTED]>

> > From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]]
> >
> > From: "Torsten Reiners" <[EMAIL PROTECTED]>
> >
...
> > > 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                   [EMAIL PROTECTED]
            - verba volant, scripta manent -
   (discussions get forgotten, just code remains)
--------------------------------------------------------------------


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

Reply via email to