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

Indirection

Subject: Indirection
From: DPawson@xxxxxxxxxxx
Date: Wed, 11 Oct 2000 10:52:12 +0100
Indirection
Scenario.
 I'm building a topic map, within which each 'topic' element
is a small, self contained element, with an id.

<topic id="cara" types="wife mother">
<topname><basename>Cara</basename></topname>
</topic>

The Associations between topics is done on a cross-reference basis.
(Basically says this association is between this topic and that topic).

<assoc type="is-married-to">
<assocrl anchrole="husband">george</assocrl>
<assocrl anchrole="wife">cara</assocrl>
</assoc>


Again, theoretically, id idref values would be ideal.

However. The actual topics I'm generating with xSLT, using
generate-id(), but the associations I'm generating manually.

this could leave me with an example like


<assoc type="is-married-to">
<assocrl anchrole="husband">N1234</assocrl>
<assocrl anchrole="wife">N1365</assocrl>
</assoc>

which is prone to being screwed if, when I next generate the id values
for the topics, XT or Saxon note that I've inserted another topic
between the two.


What I want is a method of providing an indirect link, so that N1234
refers to X, X then refers to a varying id value generated by the XSLT.

Any suggestions please anyone?
 The only ideas I've had are too fragile to be worth bothering with.
Regards DaveP







 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.