This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]