[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: Preserving links in output files


Subject: Re: Preserving links in output files
From: "Sebastian Rahtz" <sebastian.rahtz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Dec 1999 21:07:15 +0000 (GMT)

Beckers, Marc writes:
 > My thinking is: if I use an attribute
 > on "chapter" to form the HTML page name,
 > how can I put the resulting page name in front
 > of IDREF values (in other "chapter"s) that point 
 > to IDs within that chapter?

David showed that this case is fairly easy; if you want to pursue the
issue further, you could examine my TEI stylesheets at
http://users.ox.ac.uk/~rrahtz/tei. There, I allow for using "id"
attribute on <div> to name files, but also for <div> without
attributes (where I use generate-id()). The problems come when

 - you need to refer to the main document from which the sub files are 
    split off
 - you want to allow for splitting at different levels (each section
    within each chapter, in your case). 

It gets messy. But eminently doable. In fact, I'd say that making this 
sort of thing work in one stylesheet makes XSL a real pleasure to
use. Compared to one's old Perl scripts, it's just bliss

Sebastian


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



Current Thread
Keywords