[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XSL FO: retaining some structure
In going from nicely structured XML to low-level XSL FO, there are occasions when I want to remember something about the structure. Thus, if I have <div0><head>Introduction</head>, I process it with <xsl:template match="div0/head"> <fo:block font-size="24pt" text-align-last="centered" space-before.optimum="24pt"> <xsl:apply-templates/></fo:block> </xsl:template> to get a centred 24pt bold header. But when this (formatted to PDF) is displayed in Acrobat, its nice to have Acrobat's bookmarks to remind you of the structure and do fast navigation. I want to pass in the information that this is a "level 1 heading". For DSSSL, James Clark added a characteristic in Jade called "heading-level" for this purpose (to allow Word to do outlining, actually). I wonder if the XSL FO group would consider allowing this in some way? No, this is not a theoretical question at all. It gets asked for fairly often in the Jade world. Possibly I have missed something in XSL FO I can hang my clue onto? 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
|