l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Dec 17 19:46

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] XSLT questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] XSLT questions


> 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...)

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
O'Reilly and Associates
For numerous book donations.