Re: multiple handlers

Peter Murray-Rust (peter@ursus.demon.co.uk)
Wed, 25 Feb 1998 08:50:26


At 19:54 24/02/98 -0500, David Megginson wrote:
[...]
>
>I think that it will be a wonderful idea for people to implement
>higher-level, programmer-friendly stuff on top of SAX. Exactly what
>_is_ programmer friendly will depend on the programming language, so I
>agree that the helper classes should stay out of the SAX core, but I
>encourage any efforts to make SAX programmers' lives easier (as Don
>has done with SAXDOM).
>
Although it may not formally be part of SAX, I think it will be extremely
valuable to have reference library implementations of parts of the spec.
For example, what is a valid Name in XML? You have to treat a large number
of special cases for characters, and are extremely vulnerable to revisions
of the spec (this is an area where I am sure minor revisions will happen).
So a set of library classes of the type:
public static boolean isValidName(String name);
public static String getCaseSpaceNormalizedAttval(String value);
would be extremely valuable. We can then delegate part of the prose to
these implementations.

P.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg