Re: Using XSL parameter inside XSL attribute?

Jirka Kosek <[email protected]>
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
On 12.2.2020 17:26, [email protected] 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: [email protected]      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
------------------------------------------------------------------
smime.p7s (application/pkcs7-signature, 4.9 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.