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 15 2005 12:47PM messages near this date
view in the new Beta List Site
Re: Namespace support in SAX serialisers | Re: Namespace support in SAX serialisers
& XSLT A. Pagaltzis wrote:
>  * Dominic Mitchell <dom@[...].net> [2005-10-15 01:40]:
>  
> >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.
>  
>  Well, as I said, it ignores Name completely.

What do you think it should do?  I reckon:

* Look at LocalName first and then fall back to Name if it's not present 
(ignoring the prefix on Name).

* Look at Prefix first and if not present, divine it from Name.

>  The other thing I found is that trying to change the default
>  namespace mid-stream dies with â??Duplicate prefixâ?.

I've just been looking at this part of Genx recently in an attempt to 
understand quite how it works (I'm attempting a Java rewrite in order to 
bone up on my java skills).  I'll have to say that I'm still figuring 
out what's going on in there.  It's certainly given me new respect for 
the complexity of namespaces.  :-)

Could you give me the sequence of events that you're sending so that I 
can see what's going on?  Thanks.

> >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.
>  
>  
>  Iâ??m not proposing that the facility for caller-supplied prefixes
>  be dropped entirely. If the caller wants/needs to supply a
>  particular prefix, by all means the serialiser should use it.
>  
>  But why not allow the caller to omit the prefix if he so chooses?
>  Why shouldnâ??t I be able to do the sensible thing and leave
>  prefixes to be managed by the serialiser when I know that the
>  code Iâ??m writing is part of a toolchain which is *not* broken?

Yes; you certainly should be able to omit the Prefix if required.  As 
far as I can see you should be able to use LocalName and NamespaceURI 
and nothing else.  Prefix's should be honoured if supplied, but they 
shouldn't be mandatory.

-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