Writing some stylesheets for DocBook.
Edit: per the comment below: Yes, this means I am writing customizations based on the DocBook-XSL stylesheets, not rewriting existing DocBook stylesheets.
Is it possible, via an XSL stylesheet, to set a default size/scale for imagedata
elements, particularly in print output?
Essentially I want to set things up such that if I include scalefit
, width
and/or contentdepth
attributes in an imagedata
element, those attributes will be used; however if they aren't included, they will default to scalefit="1" width="100%" contentdepth="100%"
.
Seems straightforward enough, but I'm an XSLT newbie, and googling has gotten me nowhere. Is this possible? How?
Thanks!