Bob DuCharme, 2003-01-18
Compare the markup in the following paragraph (do a View Source to see it) with the behavior of the links when you click them. The green links are the one-to-many ones. This has been tested with Mozilla 1.2.1 and IE 6.0 from a Windows 98 box.
While the Recommendations for W3C specs such as XSLT and CSS Level 2 fit in one document, more complex specs such as W3C Schemas Part 0: Primer Part 1: Structures Part 2: Datatypes and DOM Level 2 Core Specification Events Specification Style Specification Traversal and Range Specification Views Specification require multiple documents. It helps you appreciate the brevity of the original XML 1.0 spec, although some would consider the Namespaces spec to be a part of that now.
Ideally, the same processing instruction of
<?xml-stylesheet href="http://www.snee.com/xml/linking/1toM.xml" type="text/xsl" ?>
at the top of your XHTML with nested a elements should cause the same thing to happen. (The XSLT script doesn't make the anchor text green, though; it assigns its a element to have a class value of "multi", and my CSS stylesheet makes the "multi" a elements green.) Let me know!