[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xml namespace prefix resolution
> -----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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|