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

Open-source XLink library (was Re: XLink - where are we?)

  • From: "Simon St.Laurent" <simonstl@s...>
  • To: xml-dev@i...
  • Date: Wed, 11 Nov 1998 11:24:47 -0500

xlink library
After spending the last few months talking and talking about how amazingly
cool XLink _could_ be, I've taken a few steps toward _doing_ things with
XLink.  The steps aren't lovely or stupendous (yet), but I hope that they
might represent a step forward.  The code is not yet ready for prime time,
but the discussion on this list makes it fairly clear that there is a need
for this kind of project.

Working from the 3/3/98 Working Draft, I've put together a few small Java
examples that use XLink and am at work on a library based on John Cowan's
ParserFilter class that extracts the linking information from a document,
allowing the application to process the document without having to deal
with the issues involved in creating and managing links.  Right now the
library supports simple and extended links, but not hub groups or attribute
remapping.  I'm planning on adding legacy support for HTML's A element at
some point in the future as well.

The examples are from Building XML Applications, and were small, simple,
one-off applets.  They can be found at the bottom of
http://www.simonstl.com/buildxml/.  They use image maps (my handling of
text link proved disastrous) and are unfortunately a bit slow as a result.
They pretty much just show what some _very_ simple XLink applications might
look like.  The source code for these examples will be in the book, and (if
I can get the necessary permissions from my editor) may appear online as well.

The library is and will be open source, though at this point I haven't
firmly decided on a license. (GPL is likely, in some slightly modified
form.) I should emphasize that the library is in (fairly ugly) alpha form;
the feature set is not yet nearly complete, especially the LinkSet class.
The basic XLinkFilter has worked on the samples on which I've tested it,
transforming multi-directional links into more workable sets of single
direction links.  The LinkSet is an extended Vector, but will probably
change to something more flexible when Java 1.2 comes along.  (I will try
to keep a 1.1 version, however.)  Information on the XLinkFilter and
supporting code is at http://www.simonstl.com/projects/xlinkfilter/.

This filter only handles XLink; XPointer is a necessary complement, but
another large piece to deal with.  Support for a DOM model in addition to
SAX is another necessary piece, but one that I haven't yet begun.

Documentation at present is weak, and the comments in the code aren't
enough.  They will improve, and I will add real JavaDoc comments as well.
(Promise!)

All contributions/modifications/suggestions on functionality, code,
licensing, etc. are welcome.  I'll be in and out for the next few days, but
will be returning to more focused work on this library over the weekend.



Simon St.Laurent
Dynamic HTML: A Primer / XML: A Primer
Cookies / Sharing Bandwidth (November)
Building XML Applications (December)
http://www.simonstl.com

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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.