ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Namespace support in SAX serialisers
by Dominic Mitchell other posts by this author
Oct 14 2005 4:34PM messages near this date
view in the new Beta List Site
Re: Namespace support in SAX serialisers | Re: Namespace support in SAX serialisers
& XSLT On Fri, Oct 14, 2005 at 10:23:02PM +0200, 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?
>  
>  F.ex., XML:SAX::Writer requires Name, Prefix and NamespaceURI to
>  work, at minimum, and seems to ignore LocalName. OTOH
>  XML::Genx::SAXWriter seems to ignore Name altogether. Etc etc.

XML::Genx::SAXWriter was an experiment in how easy it would be to plumb
together SAX and Genx.  I haven't checked to see how (non!) conformant
it is with the SAX spec.

That said, if you find it's doing something non-compliant (or just plain
odd), do tell me and I'll try to fix it.

>  It really makes me wonder though. Why should I have to specify a
>  Name *and* a Prefix? Ideally I???d like to specify only a LocalName
>  and a NamespaceURI, and the only Prefix I care to control
>  directly is the empty prefix for the default namespace. All other
>  management should be done by the serialiser on my behalf.
>  
>  Is that a reasonably expectation?

I think it's reasonable.  But I also think it's reasonable to demand a
particular prefix for a namespace.  There's enough software out there
that thinks the prefix *is* the namespace to warrant this.

-Dom
_______________________________________________
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved