This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Help with a small customization at <ulink> on HTMLstylesheets.
- To: DocBook APPS list <docbook-apps at lists dot oasis-open dot org>
- Subject: DOCBOOK-APPS: Help with a small customization at <ulink> on HTMLstylesheets.
- From: Jorge Luiz Godoy Filho <godoy at conectiva dot com>
- Date: Wed, 20 Jun 2001 11:16:50 -0300
- Organization: Conectiva S.A. / Conectiva Inc.
Hi!
I'm trying to add a 'target' attribute to element ulink in HTML
stylesheets. Norm's originals are as follow:
,----
| (element ulink
| (make element gi: "A"
| attributes: (list
| (list "HREF" (attribute-string (normalize "url")))
| (list "TARGET" "_top"))
| (if (node-list-empty? (children (current-node)))
| (literal (attribute-string (normalize "url")))
| (process-children))))
`----
And my customization is:
,----
| (element ulink
| (make element gi: "A"
| attributes: (list
| (list "HREF" (attribute-string (normalize "url")))
| (list "TARGET" (attribute-string (normalize "target"))))
| (if (node-list-empty? (children (current-node)))
| (literal (attribute-string (normalize "url")))
| (process-children))))
`----
But, with that, I get the following error message (once for each
occorrence of <ulink>):
/usr/bin/openjade:/usr/share/sgml/conectiva-dbk-sgml/3.0/supdesenv/supdesenv-html.dsl:181:13:E: invalid value for "attributes" characteristic
Line 181 is the one with 'attributes:'... Any hint?
I'd also have some clue on how to default to '_top' if the target
attribute isn't defined.
Thanks!
--
Godoy. <godoy@conectiva.com>
Suporte à Rede Conectiva de Serviços -- Conectiva Services Network Support
Conectiva S.A - www.conectiva.com.br - +55 (41) 360-2600
Conectiva Inc. - www.conectiva.com - +55 (41) 360-2600