You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Andreas Hartmann <an...@apache.org> on 2004/06/18 16:40:20 UTC
[Solution] Re: causes exception
Andreas Hartmann wrote:
> Hi Cocoon community,
>
> what's wrong with this XSP snippet?
>
> <input:get-attribute>
> <input:param name="name">foo</input:param>
> <input:param name="module">list</input:param>
> </input:get-attribute>
>
> It causes a ProcessingException in ServerPagesGenerator.setup().
The logicsheet contained an additional declaration of the
input module namespace before the used declaration:
xmlns:xsp-input="http://apache.org/cocoon/xsp/input/1.0"
[...]
xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
The first one was matched by the "get-namespace-prefix" template
in logicsheet-util.xsl. Because no appropriate parameter tag
was found, the stylesheet terminated.
BTW, I consider this as a Cocoon bug, because using namespace
prefixes to resolve anything in XML is not useful. Isn't it
possible to rely just on namespace URIs in logicsheet-util.xsl?
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Solution] Re: causes exception
Posted by Andreas Hartmann <an...@apache.org>.
Klaus Bertram wrote:
> Ups,
> I thought that the declaration for a logic sheet must only match to the
> cocoon.xconf
>
> could it be that xsp-input was in ver 2.04
> and now only input is valid
If this is true, it is very strange ...
IMO there shouldn't be any restrictions/rules regarding the
namespace prefix, only the URI should matter.
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: [Solution] Re: causes exception
Posted by Klaus Bertram <be...@n-bis.de>.
Ups,
I thought that the declaration for a logic sheet must only match to the
cocoon.xconf
could it be that xsp-input was in ver 2.04
and now only input is valid
Klaus
Andreas Hartmann wrote:
> Andreas Hartmann wrote:
>
>> Hi Cocoon community,
>>
>> what's wrong with this XSP snippet?
>>
>> <input:get-attribute>
>> <input:param name="name">foo</input:param>
>> <input:param name="module">list</input:param>
>> </input:get-attribute>
>>
>> It causes a ProcessingException in ServerPagesGenerator.setup().
>
>
> The logicsheet contained an additional declaration of the
> input module namespace before the used declaration:
>
> xmlns:xsp-input="http://apache.org/cocoon/xsp/input/1.0"
> [...]
> xmlns:input="http://apache.org/cocoon/xsp/input/1.0"
>
> The first one was matched by the "get-namespace-prefix" template
> in logicsheet-util.xsl. Because no appropriate parameter tag
> was found, the stylesheet terminated.
>
> BTW, I consider this as a Cocoon bug, because using namespace
> prefixes to resolve anything in XML is not useful. Isn't it
> possible to rely just on namespace URIs in logicsheet-util.xsl?
>
> -- Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org