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: Using XSL parameter inside XSL attribute?


On 12.2.2020 17:26, oasis@docbook-autor.de wrote:
> But I'm looking for a way to use the parameter $foo as part of an fo
> attribute, e.g.:
> 
> <fo:external-graphic src="url('images/logo_###.svg')" />
> 
> where "###" is the value of the parameter $foo.

You can use attribute value template for this -- curly braces have
special meaning inside attributes:

<fo:external-graphic src="url('images/logo_{$foo}.svg')" />

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------

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



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