I've added (in the source code) a check in startElement() that the local
name of the element is present, this will detect the situation where the
parser has been configured without namespace support and cause it to fail
gracefully in future.
I also spotted that Saxon depends on the XML parser supplying the qName
argument to startElement(), although SAX2 says that (when namespace support
is enabled) this argument is optional. However, as far as I can tell all
known parsers supply it, and since there would be a performance penalty if I
rewrote the code to manage without it, I've decided to leave in this
dependency as a documented limitation.
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@... Behalf Of
> Michael Kay
> Sent: 20 February 2002 09:18
> To: jeand@...; saxon-help@...
> Subject: RE: [saxon] Differences in Transformer vs TransformerHandler?
> Great, I'm glad we got to the bottom of it. Now I need to
> think about how to
> stop it happening again, I think the best I can do is to
> detect when the XML
> parser is supplying empty element names and try to produce a
> suitable error
> The problem is nothing to do with whether the source document
> actually uses
> namespaces, the problem is that the way element names are
> reported by a SAX2
> parser depends on whether namespace processing is enabled or not.
> As for replacing my version of AElfred with David Brownell's
> AElfred2, this
> is something that I'd like to do at some time in the future,
> but I don't
> especially want to reintegrate it at every release. At some
> time in the next
> few months I'm going to be looking around for a schema-aware
> parser that I
> can use to support XSLT 2.0, so I may well abandon AElfred
> altogether at
> that stage.
> Michael Kay
> Software AG
> home: Michael.H.Kay@...
> work: Michael.Kay@...
> > -----Original Message-----
> > From: saxon-help-admin@...
> > [mailto:saxon-help-admin@... Behalf Of
> > jeand@...
> > Sent: 19 February 2002 22:13
> > To: saxon-help@...
> > Subject: RE: [saxon] Differences in Transformer vs
> > >I'm pretty sure that namespace processing is occurring, but
> > I'll make sure and
> > >report back.
> > >
> > Okay, that was it. Here's the relevant comment from the
> > Aelfred2 parser factory:
> > // that makes SAX2 feature flags trump JAXP
> > So it was turning off some of the JAXP defaults.
> > Thanks a lot for your help,
> > Jean
> > _______________________________________________
> > saxon-help mailing list
> > saxon-help@...
> > https://lists.sourceforge.net/lists/listinfo/saxon-help
> saxon-help mailing list