cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miguel Carvalho" <mig.c...@mail.telepac.pt>
Subject RE: cocoon sax events and transformer doubts
Date Tue, 12 Aug 2003 15:20:22 GMT
Thanks... Right on the spot... :)


Miguel Carvalho

-----Original Message-----
From: Bruno Dumon [mailto:bruno@outerthought.org]
Sent: terça-feira, 12 de Agosto de 2003 16:04
To: users@cocoon.apache.org
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
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




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


Mime
View raw message