On Tue, 2003-08-12 at 17:04, Bruno Dumon wrote:
> 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");

oops, looked over another problem: the 4th argument should be "CDATA":

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

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

Reply via email to