cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: attribute and cinclude
Date Fri, 02 Aug 2002 23:35:36 GMT
> From: Michael Zehrer [mailto:Zehrer@optimal-systems.de]
> 
> Hi again,
> 
> In earlier (2.0.2) versions of Cocoon I constructed the path for
> cinclude like this and it worked:
> 
> <cinclude:include>
> <xsp:attribute name="src">some/static/xml/<xsp-session:get-attribute
> name="parm2"/>/<xsp-session:get-attribute
> name="parm2"/>/content.xinc</xsp:attribute>
> </cinclude:include>
> 
> in 2.1-dev this gives

Cocoon 2.1-dev doesn't give anything right now (xerces/xalan issues).
However, after replacing xalan/xerces/xml-apis with version from 2.0.3,
the following works ok:

<xsp-session:set-attribute name="parm1">111</xsp-session:set-attribute>
<xsp-session:set-attribute name="parm2">222</xsp-session:set-attribute>

<textarea cols="80" rows="7">
<cinclude:include>
<xsp:attribute name="src">some/static/xml/<xsp-session:get-attribute
name="parm1"/>/<xsp-session:get-attribute
name="parm2"/>/content.xinc</xsp:attribute>
</cinclude:include>
</textarea>

(it also works in 2.0.4-dev)


Vadim

> <cinclude:include src="pkw/stylesheets/dict/parm1parm2" />
> 
> in the resulting xml where the values for parm1 and parm2 are correct
> but the extra slash betwen them and the filename are completly
ignored?
> 
> Michael



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.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