Greetings, all,
This is a question for you folks who work with XSL stylesheets. I'm trying
to learn XSL, but so far I haven't come across a way of eliminating sections
of a finding aid when those sections are empty. For example, sometimes we
describe restrictions on access, and then we include <accessrestrict>, but
by default -- when there are no restrictions -- we leave the field blank. In
my stylesheet, I want the field label and content to print when
<accessrestrict> has information in it, but I don't want to refer to the
field at all if we've left it blank. In XSL, is there a way to test for a
field with a null value? When <accessrestrict> is not null, then put the
text value into the output document, something like that? How would that be
expressed?
Many thanks!
Marsha Maguire
Manuscripts and Special Collections Cataloging Librarian
University of Washington Libraries
P.O. Box 352900
Seattle, WA 98195-2900
(206) 543-1879; fax (206) 543-1931
email: [log in to unmask]
|