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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to