cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Bug? logicsheet-util.xsl and duplicate namespace declarations
Date Fri, 18 Jun 2004 14:52:39 GMT
Hi Cocoon developers,

if an input module namespace is declared twice, e.g.

   xmlns:xsp-input="http://apache.org/cocoon/xsp/input/1.0"
   xmlns:input="http://apache.org/cocoon/xsp/input/1.0"

and <input:param> is used for a required parameter:

   <input:get-attribute>
     <input:param name="name">foo</input:param>
     <input:param name="module">list</input:param>
   </input:get-attribute>

a ProcessingException is thrown, because the template
"get-namespace-prefix" in logicsheet-util.xsl is matching
the first namespace declaration and does not find any
parameter tags for this namespace prefix.

I think it is not a good practise to rely on namespace
prefixes. Wouldn't it be possible to use just the
namespace URIs to resolve the parameter?

-- Andreas


Mime
View raw message