← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] DSSSL/XSL: act on an attribute and then do theusual thing?

From
Jirka Kosek <>
Date
2003-05-12T16:43:06+00:00
ID
Thread
Re: [docbook-apps] DSSSL/XSL: act on an attribute and then do theusual thing?
Sam Steingold wrote:

> The bottom line is : how do I write:
> 
> (element quote
>   (let ((role (attribute-string (normalize "role"))))
>     (make element gi: "STRONG" attributes: (list (list "CLASS" role))
>           now-transform-the-original-quote-the-standard-way-as-if-there-was-no-role)))

use next-match instead of 
now-transform-the-original-quote-the-standard-way-as-if-there-was-no-role

> 
> <xsl:template match="quote[@role = 'package']">
>  <strong class="{@role}"><xsl:now-transform-the-original-quote-the-standard-way-as-if-there-was-no-role/></strong>
> </xsl:template>

Use <xsl:apply-imports/> instead of 
<xsl:now-transform-the-original-quote-the-standard-way-as-if-there-was-no-role/>

-- 
-----------------------------------------------------------------
   Jirka Kosek  	
   e-mail: 
   http://www.kosek.cz
← Prev in month ← Prev in thread
Next in thread → Next in month →