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

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)
Re: Preserving links in output files
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

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.