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

Expanded names are not enough

  • From: James Clark <jjc@j...>
  • To: xml-dev@i...
  • Date: Thu, 06 Aug 1998 10:41:38 +0700

Expanded names are not enough
Peter Murray-Rust wrote:

> B: Much of the current namespace spec is about minimisation. The prefix
> acts as a minimisation device. Scoping acts as a minimisation device. The
> SAX interface can expand minimised parts of a document to full
> UniversalNames (however held). The actual syntax of minimisation should be
> irrelevant to the application, i.e.:
>         which prefix was used
>         whether a namespace was default or not
>         whether a prefix was implicit through scope
> 
> (The only reason for the application receiving the prefix would be that it
> wished to be able to transform the document using the same prefix).

There's another reason why an application may need to know about
prefixes.  It may be part of the application semantics that some part of
an attribute value or of the content of an element is to be interpreted
as a qualified name using the namespace declarations in effect for that
element.

For example in an XSL stylesheet an element representing a rule can
contain an attribute value with a string such as "ns:foo" with the
semantic that this rule matches an element in the source of a type which
has a local name "foo" and a URI equal to the URI in effect for the
prefix "ns" on the rule element in the stylesheet.

This means that a parser that wishes to support this kind of application
needs, in addition to exposing the expanded names of element types and
attributes, to make available for every element the namespace prefix to
namespace URI mapping in effect for that element.

James


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.