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

Re: [Fwd: The problems with Xlink for integration languages]


xindice xlink

Uche Ogbuji wrote:

> > [Joe English]
> > [Re: http://www.w3.org/TR/hlink/ ]
> >
> > Initial impression:  This looks OK.  It finally reinvents
> > architectural forms in a way that's usable in XML.
>
> I'm surprised to hear you say this.  HLink looks more about annotating
> attributes for presentation semantics than any form of remapping or
> vocabulary-level adaptation.

That's not surprising, since most of the semantics
added by HLink _are_ presentation-oriented.

But there is a small kernel, sort of a design pattern,
that could be reused in other architectural vocabularies.
The key pieces are the declaration element (hlink:hlink),
and the 'namespace' and 'element' attributes; all the
other hlink:hlink attributes are treated uniformly by
the remapping process.

Other vocabularies could reuse this technique by specifying
their own declaration elements, which would work the same
way.

> Can this then fairly be called a reinvention of
> architectural forms?

It's a step in the right direction.  There are some problems
with the technique -- there's no way to specify a default value
that begins with "@" for instance, which is OK for HLink but
may cause problems in other architectures.  Also, it only
works for what the AFDR calls "attribute forms", which again
is OK for HLink since it only supports a single a element
(roughly, an XLink "simple" link) but would not be sufficient
for architectures with more than one element type.


> > (XLink started to do this, but the omission of any kind
> > of attribute renaming facility and the lack of a reliable
> > attribute value defaulting scheme made XLink inflexible
> > and difficult to use, as Steve Pemberton's message convincingly
> > described.  The 'hlink' declaration scheme solves both those
> > problems.)
>
> Ah.  I don't see any attribute renaming in HLink.

For example:

    <hlink:hlink element="img" locator="@src"/>

means, roughly, that the 'src' attribute of an 'img' element
is to be treated as the 'locator' attribute of an 'xlink:simple'
element.  It's basically the same as the AFDR declaration:

    <!ATTLIST img
    	XLinkNames	#FIXED "src locator"
    >

(where XLinkNames is the "Architectural attribute renamer" attribute.)


--Joe English

  jenglish@f...

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.