[jdom-interest] From JSR-102 comments

Bart Read bart at wdi.co.uk
Wed Jun 13 03:43:47 PDT 2001


And here's the DTD again as well.  This baby is still in development --
should have checked that it was okay before I sent it to you.  I think I'll
go back to bed now.


=================================
Bart Read
Senior Developer
Abbotsbury Software Ltd
Abbotsbury, DORSET DT3 4JT
Tel: +44 (0) 1305 871644
E-mail: bart at wdi.co.uk
=================================
----- Original Message -----
From: <philip.nelson at omniresources.com>
To: <jhunter at collab.net>; <jdom-interest at jdom.org>; <bart at wdi.co.uk>
Sent: Tuesday, June 12, 2001 10:41 PM
Subject: RE: [jdom-interest] From JSR-102 comments


>
> > > I just started using JDOM beta 6 a couple of weeks ago and have been
> > > very impressed by it's performance and ease of use.
> > However, I believe
> > > I may have found a small bug involving attribute default
> > values.  If I
> > > specify an attribute with a default value in the DTD, and use the
> > > corresponding element in a document but without specifying
> > a value for
> > > the attribute, then the attribute does not appear in the
> > element's list
> > > of attributes.
> >
> > The default attributes are added by the parser, and they will
> > appear if
> > you build the document using a parser.  You probably built
> > the document
> > using constructors, and in that case you got exactly the
> > elements/attributes you created.  JDOM doesn't look to the
> > DTD; it does
> > exactly what you dictate.  Considering that when elements are created
> > they exist outside a document, and can later move between
> > documents, it
> > doesn't make much sense to try to be fancy about default
> > attribs.  It's
> > the same with DOM as I understand it.
>
> I am not sure what parser this person used or what the dtd actually looked
> like, but this was exactly the problem some of the xerces parsers seemed
to
> have with the svg dtd which included default values in parameter entities.
>
> ---------- Automatically inserted by mailhost.wdi.co.uk ------------
> This message has been scanned for virus, trojans, illegal relays and
> spam. If you have any comments, problems or questions please do not
> hesitate to contact:
> Abbotsbury Software Ltd
> Tel: +44 1305 871543 Fax: +44 1305 871688
> Email: postmaster at wdi.co.uk
> Web: http://www.wdi.co.uk/virus.phtml
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: formset.dtd
Type: application/octet-stream
Size: 10251 bytes
Desc: not available
Url : http://jdom.org/pipermail/jdom-interest/attachments/20010613/301c4d6e/formset.obj


More information about the jdom-interest mailing list