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

RE: Can we treat XML elements and attributes as sets

  • To: Michael Kay <mike@s...>, xml-dev@l...
  • Subject: RE: Can we treat XML elements and attributes as sets
  • From: Mukul Gandhi <mukul_gandhi@y...>
  • Date: Sun, 21 Aug 2005 07:21:46 -0700 (PDT)
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=BZMc4GsYPhHhh1Vkmo0yhwLefxdrUWdrauf4sFvPoxVvaOg54tZvRhUVyRWQU0uHPrHk9PrBRwuW4jG9YPKklRKOMRlUPbi/hIJCwoD1DRQkW7WlCpS911/9TJZq93K1bURK6OOB6IOAcKr7gCZAPZloGAa082ARCkro851ULhk= ;

xml date null
Thanks Mike for your comments..

Regards,
Mukul

--- Michael Kay <mike@s...> wrote:

> The terminology of each of the specs is slightly
> different.
> 
> XML doesn't know about namespaces at all
> (unfortunately).
> 
> The XML namespaces spec says "If the URI reference
> in a default namespace
> declaration is empty, then unprefixed elements in
> the scope of the
> declaration are not considered to be in any
> namespace. " 
> 
> The Infoset says, of the [namespace name] property
> of an element information
> item: " If the element does not belong to a
> namespace, this property has no
> value."
> 
> The XPath 2.0 data model says that the name of an
> element or attribute is a
> QName as defined by the xs:QName data type in XML
> Schema. XML Schema Part 2
> says that a QName contains a namespace name and a
> local part; oddly, it does
> not mention that the namespace name might be absent
> or null.
> 
> Most of these specs avoid using the dreaded "null"
> word, probably because of
> its traumatic history in relational databases. But
> XSLT says (in 3.1):
> 
> "Throughout this specification, an element or
> attribute that is in no
> namespace, or an expanded-QName whose namespace part
> is an empty sequence,
> is referred to as having a null namespace URI." 
> 
> This is to enable the spec to retain terminology
> that's familar from XSLT
> 1.0.
> 
> Note that a namespace URI cannot itself be null; but
> a property of an object
> that might otherwise hold a namespace URI, and that
> might be referred to as
> "the namespace URI property", can be said to be null
> when the namespace URI
> is absent.
> 
> Michael Kay
> http://www.saxonica.com/



		
____________________________________________________
Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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.