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

X-Referencing

Subject: X-Referencing
From: Jeremy Quinn <jeremy@xxxxxxxxxxxxxxxxx>
Date: Sat, 25 Dec 1999 13:04:59 +0000
x referencing
Hi,

I am designing some cross-referencing within a set of XML Documents, using IDs and IDREFs.

The idea is to have a set of links, referencing documents both external and local to the document set. Then put references to those links wherever I like, and have them rendered according to context into the HTML.

This is what the links look like. (Links with an external relationship, supply all their information, those with parent, sibling or child relationships have their info referenced from their local file using document().) 

    <links>
        <link id="hrc" rel="external" type="full">
            <ref>http://www.hrc.wmin.ac.uk</ref>
            <target>_top</target>
            <title>The Hypermedia Research Centre</title>
            <about>blah blah blah</about>
        </link>
        <link id="theory" rel="child" type="ref">
            <ref>ma/theory</ref>
        </link>
    </links>

I envisage being able to use the references like this.

    <someOtherLevel>
        <p>
            Welcome to <link idref="hrc"/>, 
            or as we call it the <link idref="hrc">HRC</link>.
        </p>
    </someOtherLevel>
    

My question is not so much how to do it, I think I have a grip on that, I'm sure I'll ask you lot if I can't work it out ....

Thing is, I am using the <link> tag in two different ways. 
As a "container" and as a "pointer". 
Is it possible to write a DTD that will be smart enough to validate both usages?

Can you say for instance that in one situation it has to have an "id" attribute and "ref" element, while in another it has to have an "idref" attribute?

I could come up with a new name, but I like the symmetry.


Thanks for any help.

regards Jeremy

   ___________________________________________________________________

   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <mailto:jeremy@xxxxxxxxxxxxxxxxx>     <http://www.media.demon.co.uk>
    <phone:+44.[0].207.737.6831>        <pager:jermq@xxxxxxxxxxxxxxx>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

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