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

Re: Vocabulary Combination and optional namespaces

combination symbol

John Cowan wrote:
> james anderson scripsit:
> > cl-xml includes a first cut xml-path processor. it adds to the standard
> > parsing protocol that xml path expressions are interned in the parser's
> > dynamic context.
> What does it mean, to intern a symbol in a dynamic context?  

it means to choose the package into which the symbol is interned according to
dynamically bound package aliases.

stack-oriented translators customarily represent lexical relationships through
dynamic bindings. xpath expressions can be parsed in the dynamic context
established by the parser as it is parsing the document. at this point the
namespace declarations in a document are represented in the parser's runtime
environment through dynamic bindings of prefixes to namespace names. where
packages are used to model namespaces, these aliases rather than the standard
package name and nicknames are used to decide which package is designated by a
namespace prefix.

>    AFAIK symbols
> are either interned in some package or are not interned.

yes, but the package into which a symbol is interned can be freely chosen. (if
we're talking about symbols and lisp,) the reader has rules about how that
package is chosen which are codified in the language. it uses the package name
and nicknames when it is interning symbol designators. these names have
indefinite extent. a program can make up whatever rules it wants for how it
wants to name packages and therby for the package it chooses when it interns a
symbol. it does not have to rely in the reader's rules. cl-xml follows a
protocol which corresponds to that specified by namespaces in xml. it exposes
the mechanism to applications. one such application - an xml path parser can
be invoked by a larger application, or by the parser itself if an attribute
value or element content is typed as an xml path or qualified name, to parse
an expression - thereby interning any components which are names with
reference to the dynamically bound representation of the document's lexical constraints.



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.
First Name
Last Name
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.