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 >> xml-dev
xml-dev
Re: [xml-dev] QNames in attribute values
by Jonathan Borden other posts by this author
Jan 30 2002 5:07AM messages near this date
Re: [xml-dev] QNames in attribute values | Re: [xml-dev] QNames in attribute values
Paul Prescod wrote:

>  Jonathan Borden wrote:
>  >
>  >...
>  >
>  > Yeah. What I understand is that the ability to locally bind namespaces
is
>  > critical to the ability to stream process XML document composition, an
>  > element can define its own namespace prefix binding context. We recently
>  > went over this when I declared a namespace best practice of declaring
the
>  > namespace bindings at the root element. ...

>  Remember we just had an argument about whether to design for the common
>  case or the special case? Have you ever done this in an application? I
>  haven't. Still, every XML application in the world must handle namespace
>  scoping.

Hey, I was the one who declared it against best practice. No I haven't done
this either, but then again despite the fact that I don't speak Python
either, I am genuinely glad it exists for those people who use it.

I think this is all water over the dam (or is that under the dam, hmmmph?)
the fact is that usage of QNames in attribute values is a fact of life and
has been since XSLT 1.0. I _have_ dealt with these issues when writing XSLT
transforms, and they can be a pain, yet the issues also can be dealt with. I
suppose the takehome message is that you cannot blindly rename prefixes,
even though this is against the intentions of XML namespaces, unless you can
be sure that the content of attributes will not be affected. Oh well.

Jonathan



-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Michael Brennan
Michael Kay
james anderson
Evan Lenz
Ronald Bourret
james anderson
Paul Prescod
Jonathan Borden
Jonathan Borden
Ronald Bourret
Paul Prescod
Paul Prescod
Paul Prescod
Michael Kay
james anderson
Paul Prescod
Simon St.Laurent
John Cowan

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