xsl-list
[Top] [All Lists]

Re: How to render TEI <div*>s with chapter-like pagination?

2003-04-10 17:49:22

--- Wendell Piez <wapiez(_at_)mulberrytech(_dot_)com> wrote:
James,

Much of your problem may be in trying to handle
arbitrary TEI. The DTD is 
loose enough, as you are finding, to make for quite
a challenge in the 
general case. :->

Most (or let's just say all) TEI will not use the
full tag set, and it'll 
be considerably easier to write stylesheets to
handle the TEI subset used 
in a particular project. If there's any way you can
do that, consider it.

I *could* do that, but I'm trying to engage in some
"vicarious laziness," trying to make "fixes" to the
stylesheets good enough to be sent upstream.
Obviously, I've got a lot to learn before I can do
that.

You might also find splitting your transform into
two passes helpful. First 
pass to normalize (e.g. makes all numbered divs into
plain divs; XSLT 
doesn't need the numbering!), and a second pass to
provide the formatting. 
The formatting stylesheet can accordingly be much
tidier.

Now *that* sounds like a wonderful idea.


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com

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