You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Michael Zehrer <Ze...@optimal-systems.de> on 2002/08/02 15:53:32 UTC

xsp:attribute and cinclude

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

<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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


RE: attribute and cinclude

Posted by Vadim Gritsenko <va...@verizon.net>.
> 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:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>