Hi Thomas. There is a very nice intro on how to do a table of content at <http://www.dpawson.co.uk/xsl/sect2/N7402.html>
You can easily adapt this to the bookmark tree. Also Doug Tidwell presents a trafo from HTML to XSL-FO, where he does this stuff for the (old) fox-extension, which you can adept: <http://www.ibm.com/developerworks/library/x-xslfo2app/> In principle, if you generate an ID for a node of the source tree, you can recall this generated ID later in the stylesheet again with generate-id(). That's a nice feature. So, you can use two times generate-id() on your h1 and be sure, that the processor will in both cases return the same value. If you're interested in the theory of generate-id(), here's the spec: <http://www.w3.org/TR/xslt#function-generate-id> Cheers, Manuel Thomas Zastrow wrote: > Hi there, > > I try to implement (PDF-) bookmarks. > > Am I right, that fo:bookmark-tree has to be *before* the > fo:page-sequence - block ..? > > I have a XML-file with tags like "<h1>" and so on. In the XML-file, > the h-tags have no id-attribute, but they are generated later within > the XSL script: > > <xsl:template match="h1"> > <fo:block font-size="150%" .... > id="{generate-id(.)}"> > > So, Am I right that I can't access these id-attributes from the > bookmark-tree because the id's are generated later? Or Am I making > something completly wrong here? > > Thanx again :-) > > Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
