OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] 1-to-many HTML links, prototyped

[ Lists Home | Date Index | Thread Index ]

Bob DuCharme wrote:

> 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.)

Some time ago, on www-style[1] I was also experimenting with nested 
links, only to find out they are illegal. What I wanted to do was to 
present a URI as a link, where clicking on any section of it would load 
that URL (up to the level you clicked on):

<a href="http://somDomain.org/"; xml:space="default">
    <a href="http://somDomain.org/level1/";>
       <a href="http://somDomain.org/level1/level2/";>

Supposing that the xml:space would trigger the renderer to strip all 
whitespace, that would render a link:


...leading to multiple levels of the same URI. Your location would 
depend on where exactly you clicked on that link.

Invalid markup was not my only problem. I also had a CSS conflict since 
the nesting needed to be the other way around. To clarify, I wanted to 
apply the following:

<style type="text/css">

To make the link text effect work from the start till the level the 
hover was on. For that to (buggy and coincidentally) work, the link 
would have to be as

<a href="http://somDomain.org/level1/level2/"; xml:space="default">
    <a href="http://somDomain.org/level1/";>
       <a href="http://somDomain.org/";>

Of course, I know of no browser that will render that as I intended and 
keep the link interactivity intact.

It's a shame that links that share the same base have no awareness of 
that. Actually, (X)HTML links are not aware of other links in any way, 
nor anyone has come up with "complex" or related links and their 

[1] http://lists.w3.org/Archives/Public/www-style/2002Jan/0115.html

Just my thoughts.



News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS