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

1-to-many HTML links, prototyped

1 to many
While reading Micah's SkunkLink proposal, I was struck by the simplicity of 
using an 'a' element to represent one-to-many links in HTML. I remember 
seeing an argument against this somewhere, but don't remember it, so I went 
ahead and prototyped an implementation. If you go to 
http://www.snee.com/xml/linking/1toMdemo.xml you should see a page where 
the green links are 1-to-many links. A View Source will show that the file 
is basic XHMTL, except that the green links are marked up as nested 'a' 
links. View Source will also show that an XSLT stylesheet is used, 
http://www.snee.com/xml/linking/1toM.xml (1toMdemo.xml explains why the 
stylesheet has an "xml" extension) that just copies all elements through 
but converts 'a' elements with 'a' children to menus implemented with some 
JavaScript code that I learned about from a Netscape DevEdge article at 

Changing the XHTML content model for the 'a' element to allow nesting of 
them is an awfully small change to make to its DTD. (What would you with 
with deeper nesting levels? Turn them into submenus.)

For 1-to-many linking in more generalized linking constructs outside of 
XHTML (e.g. XLink and any of the successors cropping up), this combination 
of XSLT plus the DevEdge menuing code makes prototyping of the linking 
surprisingly easy.

Bob DuCharme          www.snee.com/bob           <bob@
snee.com>  "The elements be kind to thee, and make thy
spirits all of comfort!" Anthony and Cleopatra, III ii
(NOTE: bobdc e-mail address used only for mailing lists;
please send private e-mail to bob@)


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.
First Name
Last Name
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.