cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sudhi <su...@planet.net>
Subject Re: XInclude Processor Correction
Date Fri, 16 Jun 2000 15:00:22 GMT
Does anybody found anything for this. I am having the same problem. I
want to dynamically generate name of file to be included. 
Any help would be really appreciated.
TIA
~S

Ulrich Mayring wrote:
> 
> Hello,
> 
> please disregard my former posting, I had an outdated version of the
> XInclude processor. With the newest dev snapshot I can put the xinclude
> directive anywhere in the tree, not just as child of the root node.
> 
> However, I found another thing. Regard this code:
> 
> <?xml version="1.0" standalone="yes"?>
> 
> <?cocoon-process type="xinclude"?>
> <?cocoon-process type="xsp"?>
> 
> <xsp:page language="java"
>         xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>         xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
> <page>
> 
> <xinclude:include parse="xml" href="something.xml"/>
> 
> <xsp:logic>
>         String foo = "it works!";
>         <testingxsp><xsp:expr>foo</xsp:expr></testingxsp>
> </xsp:logic>
> 
> </page>
> </xsp:page>
> 
> This works fine. But if I switch the order of the PIs, xinclude stops
> working (xsp still does).
> 
> Ulrich
> 
> --
> Ulrich Mayring
> DENIC eG, Systementwicklung
> 
> ---------------------------------------------------------------------
> 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