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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format