Re: Identifiers in SAX Locators
by Petr Cimprich other posts by this author
Dec 8 2004 6:40AM messages near this date
view in the new Beta List Site
Identifiers in SAX Locators
|
XML::Simple Error
& XSLT Hi,
Bjoern Hoehrmann wrote:
> Hi,
>
> Playing with the locator implementation in XML::SAX::ExpatXS 1.03 I
> found that it reports the SystemId and PublicId of the external subset
> rather than those of the currently processed entity, i.e. for a typical
> XHTML document I would get start_element events with a locator of
>
> ...
> SystemId => 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd',
> PublicId => '-//W3C//DTD XHTML 1.0 Transitional//EN',
> ...
>
> Not what I would have expected from the current Perl SAX 2.1 spec, is
> this intentional?
>
Definitely not.
> I think it should report the identifiers of the entity
> that is currently processed (or none if those are not known).
>
>
Sure, this has to be fixed. Thanks for pointing it out.
Petr
--
Petr Cimprich
Ginger Alliance
www.gingerall.com
Thread:
Bjoern Hoehrmann
Petr Cimprich
|