Subject: RE: Preserving links in output files From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 20 Dec 1999 13:15:29 -0000 |
There are a couple of sample stylesheets in the SAXON distribution (http://users.iclway.co.uk/mhkay/saxon) that do this sort of linking, using of course the saxon:output mechanism rather than xt:document. But the links in the generated HTML link only at the document level. If you want to create links at a finer granularity, use the generate-id() function to obtain an identifier for the source node, which you can use to generate both an <a href="abc.html#id"> in the referencing document, and an <a name="id"> in the referenced document. Mike Kay > -----Original Message----- > From: Beckers, Marc [mailto:Marc.Beckers@xxxxxxxxxxxxxx] > Sent: 20 December 1999 11:38 > To: 'XSL-List@xxxxxxxxxxxxxxxx' > Subject: Preserving links in output files > > > Hello, > I have just accomplished "first steps" in XSL > and have the following question: > I would like to produce multiple HTML files > from a single XML instance (e.g., the XML instance > is a "book", each "chapter" of which needs to > become a separate HTML page). > James Clark's xt:document extension to XT seems > to give me the chopping mechanism, but how to > preserve the ID/IDREF links across the resulting > HTML pages? > > 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? > Can anyone put me on the right track (if there is one)? > > Thanks and regards, > Dr. Marc Beckers > Documentation Consultant > Software AG > Uhlandstraße 12 > D-64297 Darmstadt > Phone +49-6151-92-1322 > Fax -1612 > E-Mail Marc.Beckers@xxxxxxxxxxxxxx > Internet www.softwareag.com > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Preserving links in output file, Beckers, Marc | Thread | Recover text from element, Andoni García Olano |
RE: Using dom.Document as SAXON sou, Kay Michael | Date | RE: Variables and Parameters in SAX, Kay Michael |
Month |