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:26:51 UTC

causes exception

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().

-------------------------

It seems like the stylesheet terminated with a message
(<xsl:template name="error"> in logicsheet-util.xsl)

javax.xml.transform.TransformerException: Stylesheet führte zu Beendigung
	at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:162)


How to find out this message?

-------------------------

Thanks in advance!
-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: causes exception

Posted by Andreas Hartmann <an...@apache.org>.
Klaus Bertram wrote:

> Hi Andreas,
> 
> is the namespace for input: at the xsp:page ?
> xmlns:input="http://whatever"

This would have pointed me to the solution (duplicate
namespace declaration). But I already found it (see my
other reply).

Thanks a lot!

-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: causes exception

Posted by Klaus Bertram <be...@n-bis.de>.
Hi Andreas,

is the namespace for input: at the xsp:page ?
xmlns:input="http://whatever"

Klaus


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().
> 
> -------------------------
> 
> It seems like the stylesheet terminated with a message
> (<xsl:template name="error"> in logicsheet-util.xsl)
> 
> javax.xml.transform.TransformerException: Stylesheet führte zu Beendigung
>     at org.apache.xalan.templates.ElemMessage.execute(ElemMessage.java:162)
> 
> 
> How to find out this message?
> 
> -------------------------
> 
> Thanks in advance!
> -- Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: causes exception

Posted by Andreas Hartmann <an...@apache.org>.
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().

BTW, applying the input.xsl logicsheet by hand worked
fine:

<xsp:expr>this._xsp_module_helper.getAttribute(objectModel, 
"list","foo","")</xsp:expr>

-- 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


[Solution] Re: causes exception

Posted by Andreas Hartmann <an...@apache.org>.
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