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

RE: xml namespace prefix resolution

  • To: "Bob Foster" <bob@o...>,"Anirban Chatterjee" <anirban_417@y...>,"Henry S. Thompson" <ht@c...>
  • Subject: RE: xml namespace prefix resolution
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Wed, 17 Sep 2003 18:49:13 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcN9hJbydIY3/qVxRkiSWKikNLEf7gAAhoaA
  • Thread-topic: xml namespace prefix resolution

xml namespace prefix
> -----Original Message-----
> From: Bob Foster [mailto:bob@o...] 
> Sent: Wednesday, September 17, 2003 6:45 PM
> To: Anirban Chatterjee; Henry S. Thompson
> Cc: xml-dev@l...
> Subject: Re:  xml namespace prefix resolution
> 
> Because (the last time I checked) there is nothing in the SAX 
> or DOM APIs that JAXP supports that will in any sense 
> automatically resolve a namespace prefix in text contents (or 
> attribute values), irrespective that it is declared to be a QName.
> 
> I have to assume you know that "JAXP supports W3C XML Schema" 
> only extends to validation and you are just expressing 
> wide-eyed disbelief that all XML APIs have not extended 
> themselves to accommodate the PSVI? ;-}

What does this have to do with the PSVI? 

From http://www.w3.org/TR/xml-infoset/

"[in-scope namespaces] An unordered set of namespace information items,
one for each of the namespaces in effect for this element. This set
always contains an item with the prefix xml which is implicitly bound to
the namespace name http://www.w3.org/XML/1998/namespace. It does not
contain an item with the prefix xmlns (used for declaring namespaces),
since an application can never encounter an element or attribute with
that prefix. The set will include namespace items corresponding to all
of the members of [namespace attributes], except for any representing a
declaration of the form xmlns="", which does not declare a namespace but
rather undeclares the default namespace. When resolving the prefixes of
qualified names this property should be used in preference to the
[namespace attributes] property;"

Of course, neither DOM nor SAX is actually based on the XML Infoset so
it is unsurprising that they don't expose such functionality but this
doesn't mean that it has anything to do with the PSVI. 

-- 
PITHY WORDS OF WISDOM 
People never like to discuss a lack of communication.


This posting is provided "AS IS" with no warranties, and confers no
rights. 

 


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.