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

Linking solutions


Linking solutions
"Simon St.Laurent" wrote:
> 
>...
> 
> Yes, it's yet-another-packaging-problem, and no one wants to go near
> packaging.  For now, RDDL seems like a good place to put this
> information, as does a MIME Content-type registration.

I have two proposals:

Proposal #1:

A new vocabulary which we call the XML Linking Schema language. It has
two purposes. The first is that it describes how to recognize links in
an XML document, probably using one of the two W3C pattern languages
(XPath patterns, CSS selectors, ...). The second is that it describes
the range of each link types. i.e. that personRef must link to a person
element and so forth. XML Schema has some weak support for this (through
keys) but it is really not sufficiently powerful to be widely usable.

The procedure for finding a linking schema would be just like those for
finding a schema. You COULD follow a magic attribute
("xml:linking-schema"). You COULD follow a link to a RDDL and find the
linking schema from there. You COULD "just know" what linking schema is
associated with the top-level namespace.

Proposal #2:

We could have a more generalized syntax for doing out-of-line
element/attribute renaming or annotating could be standardized. Once
again it would have patterns but it would be substantially simpler than
XSLT in that it would only rename or annotate things but never (e.g.)
reorder them. I imagine it saying something along the lines of:

<annotate match="xhtml:img">
   <attribute name="xlink:href" select="@src"/>
</annotate>

The "finding" procedure would be similar to the one before, but not link
specific:

<mydoc>
<xm:type-mapping from="somenamespace" to="somenamespace"
href="somefile.xmap">

The processor could either use that OR use RDDL OR use some cached or a
priori knowledge of the mappings allowed for a vocabulary.
====
The first proposal kills two birds (link recognition and validation)
with one stone. The second proposal kills N birds with one stone.

-- 
"When I walk on the floor for the final execution, I'll wear a denim 
suit. I'll walk in there like Willie Nelson, John Wayne, Will Smith 
-- Men in Black -- James Brown. Maybe do a Michael Jackson moonwalk."
Congressman James Traficant.

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.