Thanks... Right on the spot... :)

Miguel Carvalho

-----Original Message-----
From: Bruno Dumon [mailto:[EMAIL PROTECTED]
Sent: terça-feira, 12 de Agosto de 2003 16:04
To: [EMAIL PROTECTED]
Subject: Re: cocoon sax events and transformer doubts


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
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to