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

Re: XMap: A Mechanism for Mapping Names


alpha renaming
james anderson <james.anderson@s...> wrote:

| 1. how to encode the mapping specification?
| 
| what is the advantage of[:]  resolver == URI -> local-name -> external-name
| 
| over[:] resolver == local-name -> (URI x external-name)
| 
| since the local name must be unique in any given context. 

Because multiple external names may map to the same local name!  That's
what sharing of data values is all about.  How can xlink:href and html:src
have the same value by *authorial intent*, as opposed to what *could* be
just coincidence (e.g. string equivalence)?

The Namespaces approach is implicitly one of "disjoint factoring", i.e.
that a value is assigned (by name) to only *one* external category; but
XMap isn't only about XML Namespaces, and disjoint factoring is manifestly
*not* the general case.  Thus, the correct general approach is outside-in
("where is my value?") rather than inside-out ("who gets this value?")

 specific resolver/extractor == (URI x external-name) -> local-name

The difficulties in using XMap to reproduce Namespaces are precisely in
this "inversion" (the natural interpretation of XMap is AFs).  Indeed,
disjoint factoring (to allow if not enforce inside-out mappings) is a
fundamental *flaw* of colonification syntax.

| 2. ontology, taxonomy, or name set

| why does "where the names came from" matter for a renaming transformation?

See above.  It's the same question. :-)
 
| 3.
|>| while performing the transformation which XMap describes, the pairs in 
|>| the control attributes are equivalent to variable bindings and the 
|>| transformation itself is equivalent to beta-conversion.
|> 
|> I don't see how. I'd say XMap is an analog of alpha renaming.
| 
| it is alpha-conversion only if one posits an implicit binding for each name. 
| an implementation looks a lot more like beta-conversion.

An implementation would be "undoing" the alpha-renaming, which may *look*
like beta-conversion. :-)

[CL code omitted: hey, tried using a couple of spaces instead of tabs?;-)]

Thanks for the code snippet.  I think the (acons (second mapping) (first
mapping) ...) says it all.  That isn't what we want to do, in the general
case.


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.