OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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: jirka@kosek.cz
   http://www.kosek.cz

S/MIME Cryptographic Signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]