[vox-tech] XSLT questions

Jonathan McPherson vox-tech@lists.lugod.org
Wed, 17 Dec 2003 12:02:18 -0800


Micah,

> The XSLT equivalent of called subroutines is named templates. You can
> do something like (untested):

Nice, and exactly what I was looking for.  Thanks. Man, someone needs to
write a better XSLT tutorial.  "XSLT for programmers."  Yeah, that
sounds good. (-:

> Hope that's what you were looking for. BTW, if you can avoid empty alt
> attributes, you should probably parameterize that, too, if your source
> XML format supports something that can be used for it. In my custom
> DocBook stylesheets, I generate most <img/> elements from docbook
> <graphic/> elements; and I use the xreflabel attribute's contents when
> available; otherwise the contents of the <title/> sub-element to
> <graphic/>.

Here's a question for you, somewhat unrelated: what do you think the alt
attribute should contain for images that have no real semantic meaning?
Let's say, for example, that I have four "rounded corner" images so that
I can make rounded corners in my site's design.  What should I put in the
alt attribute for those images?  (Of course, XHTML won't let me not have
an alt attribute...)

Jonathan.