This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: DSSSL: Customizing the filename element
- To: docbook-apps at lists dot oasis-open dot org
- Subject: Re: DOCBOOK-APPS: DSSSL: Customizing the filename element
- From: Norman Walsh <ndw at nwalsh dot com>
- Date: Tue, 09 Jan 2001 19:20:25 -0500
- References: <000701c070af$dfd32b80$7e0ca8c0@aloc.dk>
/ Rune Enggaard Jensen <r.e.jensen@bigfoot.com> was heard to say:
| Hi all!
|
| I would like to customize the filename element such that
| if the path attribute is not empty, it is printed before
| the filename. Example:
|
| <filename class="headerfile" path="bas/">ddlhdl.h</filename>
|
| should render as
|
| bas/ddlhdl.h
|
| How can I do this?
|
| I should mention that I already have some customizations, so
| I only need help on this specific element (for now ;-).
This ought to do it.
(element filename
(make sequence
(literal (attribute-string "path"))
(literal "/")
(process-children)))
Be seeing you,
norm
--
Norman Walsh <ndw@nwalsh.com> | 'I have done that,' says my
http://www.oasis-open.org/docbook/ | memory. 'I cannot have done
Chair, DocBook Technical Committee | that'--says my pride, and remains
| adamant. At last--memory
| yields.--Nietzsche