[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSL List

Subject: XSL List
From: Gustaf Liljegren <gustafl@xxxxxxxxxx>
Date: Sat, 26 May 2001 04:36:22 +0200
 XSL List
I'm making an FO stylesheet for a doctype with recursive headers, like this:

<!ELEMENT part (header, (part | p | codeblock | note | list | 
  table | image)*)>

So, <part> is the divider in this doctype, and there may be an arbitrary
number of levels, like:

<part>
  <header>Chapter level</header>
  <p>Some text.</p>
  <part>
    <header>Second level</header>
    <p>More text.</p>
    <part>
      <header>Third level</header>
      <p>Text.</p>
    </part>
  </part>
</part>

First I thought that this structure would allow me to make something
intelligent when it comes to styling the headers at different levels. After
all, the FO attributes are all the same for different levels of headers,
with the exception of font-size. The idea was to decrease only the size 4pt
for each level, but I have since abandoned this idea, since it got too
complicated. If you got a finished solution, I'm very interested though...

Now I'm working on another solution, but it involves lots of duplicated
code, and SAXON complains about ambigious matching patterns. Ideal would be
if the stylesheet allowed as much flexibility as the DTD itself, but I'm
prepared to use a fixed number of headers if that is necessary.

Gustaf Liljegren


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.