[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: RE: Namespaces Best Practice

  • From: Daniel Veillard <veillard@r...>
  • To: David Carlisle <davidc@n...>
  • Date: Fri, 21 Sep 2001 09:37:11 -0400

.net namespaces best practices
On Fri, Sep 21, 2001 at 01:51:14PM +0100, David Carlisle wrote:
> 
> 
> > Algorithm to normalize namespace prefixes
> This fails if the document you are normalising makes use of prefixes in
> places you haven't normalised. For example if the document happens to be
> an XSL stylesheet it will have XPath expressions all over the place, and
> prefixes appearing in namespace-alias attributes etc. In general how are
> you to know in a general XML document where th enamespace prefixes are?
> any string might be (say) a URI employing XPointer. If you remap the
> prefixes in the declarations but not in the XPointer, you break the link.

  Actually XPointers are now context independant (you don't inherit
any namespace information from a possible XML embedding context).
  But the problem David pointed is still perfectly valid for the use of
QName attribute values, where you have really no way to know a-priori
if the content of the attribute is supposed to be a Qualified Name or
just any CDATA.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@r...  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.