Re: Namespace support in SAX serialisers
by Petr Cimprich other posts by this author
Oct 17 2005 1:36AM messages near this date
view in the new Beta List Site
Namespace support in SAX serialisers
|
Re: Namespace support in SAX serialisers
& XSLT A. Pagaltzis wrote:
> Hi all,
>
> whatâ??s the skinny on this? I see the following elements available
> when emitting, say a start_element event:
>
> Name
> LocalName
> Prefix
> NamespaceURI
>
> Now, my question is, which of this data is minimally required
> according to the spec?
>
>
My reading of the spec is that drivers are required to provide all of
these properties. Moreover, the properties must be consistent with
*_prefix_mapping events. I would like to provide a test suite for Perl
SAX compliant drivers soon.
Serializes get the full information and they can work with it in a any
sensible way they like. They can, for example, take the Name and Prefix
properties as recommended values and change them without changing the
infoset.
> It really makes me wonder though. Why should I have to specify a
> Name *and* a Prefix?
>
I agree. There should be a way to express that you have no preferences
about a prefix. In this event, you could be able set both Prefix and
Name to undef. Would this work for most of you?
Petr
--
Petr Cimprich
Ginger Alliance
www.gingerall.com
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
A. Pagaltzis
Petr Cimprich
A. Pagaltzis
Petr Cimprich
A. Pagaltzis
Robin Berjon
Petr Cimprich
Dominic Mitchell
A. Pagaltzis
Robin Berjon
Dominic Mitchell
Robin Berjon
A. Pagaltzis
Robin Berjon
A. Pagaltzis
Robin Berjon
A. Pagaltzis
A. Pagaltzis
Dominic Mitchell
Robin Berjon
Dominic Mitchell
A. Pagaltzis
Dominic Mitchell
Dominic Mitchell
|