Subject: Re: Links between HTML documents produced from SGML and DSSSL From: Brandon Ibach <bibach@xxxxxxxxxxxxxx> Date: Mon, 20 Jul 1998 09:07:51 -0500 (CDT) |
pkjames@xxxxxxxxxxx said: > > > This is a question about how to set-up links between > HTML documents produced from SGML and DSSSL inputs. > > I've got a 'BOOK' that is divided into SECTIONs. Each > SECTION is divided into SUB-SECTIONs (book.sgml). > > I have two DSSSL files which are used with Jade to:- > > (1) output the BOOK in HTML - with one SECTION per HTML > file (book_html.dsl), and > (2) output an index to the SECTIONs and SUB-SECTIONs > (book_index.dsl) > > I'd like to generate HTML hyperlinks from the index to each > of the HTML SECTION files. For example, using the sgml and > dsl files below I'd like to generate links such as:- > > Operator Documentation > > <A HREF="book-intro.html"> Introduction </A> > <A HREF="book-intro.html#background"> Background </A> > <A HREF="book-intro.html#service"> Service Levels </A> > > <A HREF="book-hardware.html"> Hardware Failures </A> > <A HREF="book-intro.html#symptoms"> Symptoms </A> > <A HREF="book-intro.html#contract"> Contractual Issues > </A> > > I guess my question is - how do I hang onto the 'SNAME's > (from SECTIONs) so that I can output them when I encounter > a SECTION-TITLE or a SUB-SECTION tag? > > Any help much appreciated. > A brief answer... (sorry... late for a meeting). Check out chapter 10 of the DSSSL standard, which covers the query language. There are functions for getting an ancestor (parent, g-parent, etc) node of the current one which has a certain element type (gi). Once you have a reference to that node, you can lookup its attributes. -Brandon :) DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Links between HTML documents produc, pkjames | Thread | Semantics question?, Pawson, David |
Processing a home-brewed FOT, Richard Light | Date | Re: Semantics question?, Brandon Ibach |
Month |