Re: DSSSL/XSL: act on an attribute and then do the usual thing?

From
Sam Steingold <>
Date
2003-05-12T17:33:12+00:00
ID
Thread
Re: DSSSL/XSL: act on an attribute and then do the usual thing?
> * In message <>
> * On the subject of "Re: Re: DSSSL/XSL: act on an attribute and then do   the usual thing?"
> * Sent on Mon, 12 May 2003 19:28:01 +0200
> * Honorable Jirka Kosek <> writes:
>
> Sam Steingold wrote:
> 
> >>use next-match instead of
> >>now-transform-the-original-quote-the-standard-way-as-if-there-was-no-role
> > (element quote
> >    (let ((role (attribute-string (normalize "role"))))
> >      (case role
> >        (("pacakge")
> >         (make element gi: "STRONG" attributes: (list (list "CLASS" role))
> >               (next-match)))
> >        (else (next-match)))))
> > does not work.
> 
> Sorry, my DSSSL knowledge is very shallow. Any error message, or it just
> simply doesn't work?

no error message, the output HTML does not have <strong role="package">:
I get:

Symbols in the Package <A
HREF="http://www.lisp.org/HyperSpec/Body/sec_11-1-2-1.html"
TARGET="_top"
><SPAN
CLASS="QUOTE"
>"COMMON-LISP"</SPAN
></A
>

instead of

Symbols in the Package <a href="http://www.lisp.org/HyperSpec/Body/sec_11-1-2-1.html" target="_top"><strong class="package">“COMMON-LISP”</strong></a>

with XSL.


-- 
Sam Steingold (http://www.podval.org/~sds) running RedHat9 GNU/Linux
<http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/>
<http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html>
A professor is someone who talks in someone else's sleep.