Subject: Need custom stylesheet to generate named destinations
Hello All, I am trying to use olink to jump to a hotspot in another PDF file. According to the DocBook XSL: The Complete Guide: "Neither FOP nor Xml2PDF write the original ID values from the XSLT process to the PDF file. So although a link with a fragment identifier is properly formed, the ID value it points to does not exist in the destination PDF." On the FOP user list, they suggest that the solution is to customise the XSL, and generate named destinations for the FOs/IDs that I want to be able to reach. See: http://xmlgraphics.apache.org/fop/0.95/extensions.html#named-destinations Ideally, I want to be able to jump to any object that has an xml:id, but I will be satisfied with being able to jump to a chapter or appendix. I want to write something like: <xsl:template match="*[@xml:id]"> <fox:destination internal-destination="value_of(@xml_id)"/> <!-- <fox:destination internal-destination="book1_chapter2"/> --> <xsl:apply-imports/> </xsl:template> The hope is that the above template matches any node that has an xml:id. I really have no idea how to construct this expression. Can anyone help?