cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-1196) [XSP] logicsheet-util.xsl failes with duplicate namespace declarations
Date Tue, 25 Oct 2005 00:58:57 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1196?page=all ]

Ralph Goers updated COCOON-1196:
--------------------------------

    Bugzilla Id:   (was: 29864)
      Component: Blocks: XSP
                     (was: Blocks: (Undefined))
    Description: 
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?

  was:
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?


> [XSP] logicsheet-util.xsl failes with duplicate namespace declarations
> ----------------------------------------------------------------------
>
>          Key: COCOON-1196
>          URL: http://issues.apache.org/jira/browse/COCOON-1196
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: XSP
>     Versions: 2.1.8-dev (Current SVN)
>  Environment: Operating System: other
> Platform: Other
>     Reporter: Andreas Hartmann
>     Assignee: Cocoon Developers Team
>     Priority: Minor

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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message