Next in thread → Next in month →

Re: Using XSL parameter inside XSL attribute?

From
Jirka Kosek <>
Date
2020-05-26T10:53:33+00:00
ID
Thread
Re: Using XSL parameter inside XSL attribute?
On 12.2.2020 17:26,  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:       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
------------------------------------------------------------------
Next in thread → Next in month →