cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: cocoon sax events and transformer doubts
Date Tue, 12 Aug 2003 15:04:28 GMT
On Tue, 2003-08-12 at 17:02, Miguel Carvalho wrote:
<snip/>
>                 newAttr.addAttribute("", localName, "layouttype", "", "2");
>                 newAttr.addAttribute("", localName, "xpos", "", "5");
>                 newAttr.addAttribute("", localName, "ypos", "", "7");
>                 newAttr.addAttribute("", localName, "border", "", "dotted");

This is likely the problem: the localName should also be the attribute
name, so in fact you need to supply the same string twice:

newAttr.addAttribute("", "layouttype", "layouttype", "", "2");

In this case the two arguments are the same because you're using an
empty namespace. Otherwise, the second argument would contain the
namespace prefix.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


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


Mime
View raw message