cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <pati_giac...@yahoo.com>
Subject Re: cocoon2 bug in XSPObjectHelper.java
Date Thu, 30 Nov 2000 09:43:41 GMT

--- Mike LaRocca <larocca@spinnakernet.com> wrote:
> Found a usage bug with XSPObjectHelper.addAttribute()  where
> attribute
> names are not  making it into the SAX stream.  If the qualified
> attribute name is not set to the local attribute name then the
> attribute
> name will be absent in the output document.
> 
>   protected static void addAttribute(
>     AttributesImpl attr,
>     String name,
>     String value
>   )
>     throws SAXException
>   {
>     // before fix
>     //attr.addAttribute("", name, "", "CDATA", value);

I havn't found that in the current CVS. It's already uncommented.

>     // after fix
>     attr.addAttribute("", name, name, "CDATA", value);

Using this signature dosn't compile!

>   }
> 
> I found this with a logicsheet helper object that I'm working on but
> you
> can reproduce the problem by running the simple.xsp exmple for
> cocoon2.
> eg. http://localhost:8080/cocoon/xsp/simple?name=bush&name=gore
> 
> Output before fix (NOTE the missing attribute name 'name'):
>      Parameter Values for "":
>         bush
>         gore
> 
> Output after fix:
>      Parameter Values for "name":
>         bush
>         gore

I can't get the on nor the other. I have *no* values at all (no "bush"
and no "gore").

Giacomo

=====


__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

Mime
View raw message