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

Re: RE: Namespaces Best Practice

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: Joe English <jenglish@f...>, xml-dev@l...
  • Date: Thu, 20 Sep 2001 00:40:50 -0400

Re:  RE: Namespaces Best Practice
At 12:28 PM 9/19/2001 -0700, Joe English wrote:
>Don't know if this will be helpful or not, but you should take a
>look at Henry Baker's papers [1] "Shallow Binding in Lisp 1.5" [2]
>and "Shallow Binding Makes Functional Arrays Fast" [3].
>He describes a data structure -- a "rerootable environment tree",
>originally designed to implement dynamic scoping in Lisp --
>that looks like it would be very handy for implementing XML
>namespace scoping rules.

I'll take a look - sounds like material that would solve my (Java) headache.

>You could store a pointer to the namespace environment at
>each node; then when cloning or moving a node you wouldn't
>need to copy any namespace declaration nodes at all, just
>the environment pointer.  When serializing, you could track
>the rerooting process to determine when to emit namespace
>declarations.  Extracting the list of in-scope namespace nodes
>at any point in the tree is also straightforward.

That's more or less the approach I'm hoping to end up with, though I'm 
working with portions of documents, so there may not be a declaration per 
se to point at.  I don't think that makes the overall approach any less 
sound, though.

Simon St.Laurent
Associate Editor
O'Reilly & Associates, Inc.

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.