Menu

#2 Bad DTD on web (referenced by examples)

closed
None
5
2003-06-19
2003-06-05
Anonymous
No

To whom it concerns,

I've been playing with the latest version of JGB.

I've discovered a couple of problems:

1)
The latest DTD requires that, in "window" elements, "object"
sub-elements occur before "property" sub-elements. However,
the simplewindow.xml and simplewindow2.xml examples in the
download define their "property" sub-elements before their
"object" sub-elements so they won't work unless they are
edited to fix the ordering.

2)
One of the examples (simplewindow2.xml) references an
"event" element. That element is not defined in the most
recent JGB DTD (found at http://jgb.sourceforge.net/dtd/
jgb.dtd). This causes the example to not work unless the
"event" element references are commented out in the two
places they occur in the example (note that an older DTD in the
download does define the "event" element but does not define
many of the newer DTD elements that exist in the current
DTD).

3)
The Unix .sh file testwin.sh in the download is incorrect (it
contains a reference to jgb.rar instead of jgb.jar).

The other .sh file (tojava.sh) is empty (except for comments).

But, in any case, I've enjoyed trying it out so far. I'm trying to
determine if I can use it to quickly generate some mock-up
displays for a project I'm working on.

I hope some of the above is useful.

Sincerely,
Gary Nunes (gary@nunes-otsubo.com)

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Addendum to the above:
    The simpleeventwindow.xml example has similar problems (element
    ordering) and also has a problem with the "constraints" element
    associated with the JScrollPane control definition.

    I tried a few things but couldn't get this example to work (but I'm not
    very familiar with the DTD yet).

    Gary Nunes (gary@nunes-otsubo.com)

     
  • Nobody/Anonymous

    Logged In: NO

    Me again.

    Another problem with the current DTD is that it references the
    element "menubar" as all lower case but defines the element as
    "menuBar" (note the upper case B). DTD is case sensitive so this
    causes a problem (which can be seen in the msgBrowser.xml example
    included in the download).

    On the other hand the example msgViewer.xml doesn't show any
    errors but doesn't display anything visible either.

    Gary Nunes (gary@nunes-otsubo.com)

     
  • Francois Beausoleil

    Logged In: YES
    user_id=221032

    Thanks for the info. The 0.6a release is forthcoming and
    will correct many of these mistakes.

     
  • Francois Beausoleil

    • assigned_to: nobody --> fbos
     
  • Francois Beausoleil

    • status: open --> closed
     
  • Francois Beausoleil

    Logged In: YES
    user_id=221032

    Release 0.6a is out, so this problem will not appear
    anymore. 0.6a also adds an EntityResolver to allow
    resolving the JGB DTD to a local file.

    This kind of problem should not appear later too.

     

Log in to post a comment.

Auth0 Logo