You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Dirk Reiss <d....@tu-bs.de> on 2002/05/07 00:53:23 UTC
dynamically generated cinclude-tag not processed
Hello,
we try to generate a <cinclude:include> - tag dynamically using the following
code:
<xsp:element>
<xsp:param name="name"><xsp:expr>elementName</xsp:expr></xsp:param>
<xsp:attribute name="src">
<xsp:expr>uri</xsp:expr>
</xsp:attribute>
</xsp:element>
where the variables used are initialized in the <xsp:logic> part after calling
an java-function
the generated output in the webbrowser is
<cinclude:include
src="cocoon:/processed/lomobjects/lu/vorms/tp3/simulation/lektion1.xsp"></cinclude:include>
if we code this 'statically' in our logicsheet it works fine, the
cinclude-instruction is processed correctly and the needed xml-file is
included.
what could be wrong?
xsp should be executed and AFTER that the cinclude-transformer should do the
rest... but it seems it doesnt...
can anybody help??
many thanks in advance
dirk
--
<!--------------------------------------------------------------------------------------
Dirk Reiss
Helmstedter Str. 134
38102 Braunschweig
++49 (0) 531 7996276
E-Mail: d.reiss@tu-bs.de
---------------------------------------------------------------------------------------->
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
RE: dynamically generated cinclude-tag not processed
Posted by Vadim Gritsenko <va...@verizon.net>.
> From: Dirk Reiss [mailto:d.reiss@tu-bs.de]
>
> Hello,
>
> we try to generate a <cinclude:include> - tag dynamically using the
following
> code:
>
> <xsp:element>
It has three parameters: uri (optional), prefix (optional), name.
> <xsp:param name="name"><xsp:expr>elementName</xsp:expr></xsp:param>
You specified only one parameter - name. You have got element in the
default namespace, not in the CInclude namespace.
> <xsp:attribute name="src">
> <xsp:expr>uri</xsp:expr>
> </xsp:attribute>
> </xsp:element>
>
> where the variables used are initialized in the <xsp:logic> part after
calling
> an java-function
>
> the generated output in the webbrowser is
>
> <cinclude:include
>
src="cocoon:/processed/lomobjects/lu/vorms/tp3/simulation/lektion1.xsp">
</cinc
> lude:include>
>
> if we code this 'statically' in our logicsheet it works fine, the
> cinclude-instruction is processed correctly and the needed xml-file is
> included.
>
> what could be wrong?
>
> xsp should be executed and AFTER that the cinclude-transformer should
do the
> rest... but it seems it doesnt...
It does, but it works only on elements in its namespace.
Vadim
>
> can anybody help??
>
> many thanks in advance
> dirk
>
> --
>
<!----------------------------------------------------------------------
------
> ----------
> Dirk Reiss
> Helmstedter Str. 134
> 38102 Braunschweig
> ++49 (0) 531 7996276
> E-Mail: d.reiss@tu-bs.de
>
------------------------------------------------------------------------
------
> ---------->
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>