[projectaon] Multiple instances of large illustrations?

  • From: Thomas Wolmer <angantyr@xxxxxxxxx>
  • To: projectaon@xxxxxxxxxxxxx
  • Date: Mon, 15 Aug 2005 21:31:04 +0200

[ ] Jon - consider another mad idea

As you all know, one improvement that we make to the books is that we,
unobstructed by the typographic space constraints of a printed book,
generously put the small illustrations in all sections where they fit.
As a few might remember, I once proposed that we do the same to the
large illustrations, since they are sometimes equally applicable to
several parallel sections. Nothing happened at that time...

...but today I felt like doing some XSLT magic, and tried it out. It
wasn't so hard.

Benefits:
- The sections where the illustrations are located and the separate
illustrations sections look just like they do today (the XHTML code is
identical).
- The illustrations can appear any number of times, just like the
small illustrations.
- The illustrations index can contain links straight to the
illustration sections, as well as to the section where they appear.
- No extra files are created.

Sacrifices:
- To avoid excessive ugliness in the XSL or XML files, I added a new
block entity to the DTD (empty, with just link attributes) for the
locations.
- The illustrations have to be defined somewhere, and I opted for just
dumping them in the numbered sections <data>, before the actual
sections.
- The DTD is backwards compatible, but the XSL is not. This could be
fixed though.

So the question--mainly addressed to Jon, I guess--is, do we want to
do this? I can polish up my modified gamebook.dtd and xhtml.xsl
together with a modified example XML book (not all books have large
illustrations that could be duplicated, but I remember that 01fftd
does).

-- 
Thomas

Other related posts: