Re: Using XSL parameter inside XSL attribute?

[email protected]
Newsgroups gmane.text.docbook.apps
Message-ID <[email protected]>
 Hi,

me again. Just cut the Gordian knot...

The solution is actually quite simple by using the <xsl:value-of> inside
<xsl:attribute>:

<fo:external-graphic>
  <xsl:attribute name="some_att">some_value</xsl:attribute>
  <xsl:attribute name="src">url('images/logo_<xsl:value-of select="$foo"
/>.svg')</xsl:attribute>
</fo:external-graphic>

HTH.

 Cheers from Aachen
  Michael
signature.asc (application/pgp-signature, 819 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJeRDMtAAoJEIR7o6OSthAdrIoQALbn5xvCm86cjdWZTUvHrbOk
jSiNvjBxrcwk2PXoNKv360Ci4eQhD2L+OxMEwXEYyaSqXN4j6spbFlOGupKodi2t
+tb02DkffHgqMV2GpHM/vQXwMYUJtM/0RSv7/qXdt7rNOVvKBa68Q0+vnBKfqdOc
MG2IvPYHtqd0RirYfRYbreQCtaLXgQ0nJDLrJ407qZ3E5rQPyWVNm4vvrtHQPIn/
isJq5263QIC+b/JpNU6yWtr9Ooa+nBwP+nRrQ5MiRjMcxfp8xfGOxkALScWIUS02
QedH7Ha9IZbSCp498gmcnbUk+h/oaMRj5+Q+el4HYXkFnbT92vFZOyl2pYUpIf9e
BaEzBTNP60H9qQL2yY1F6gbhhkZSrH7QVeG4EmSFJf3QT0qzfnNiy2f1v3MCF4zi
hV3SqefMBJFAKU3rP0Td2kQ0GIQ0TNgeVHKwJMbRBFVm9rvOt3VyGmafmTP08vuz
p39Cj/kp77xyd3cjG3ArusIftVEno6nB2Pa9BqQgRbBFc4shTYMIjKkGMxcDLxyW
FykFEyJrEQZVdIjuozgVhvu1ZvrHDXWtduWg0lfWo5jerilYadXZvbTjQo4y3uJ/
k8Gm8D0vMx5im3GMrcgrwv3XwYFIn5cA5RK3uWsgwD58mbntE8bmruQ45P7meYO3
v4LUop/WJPDx9OLEAlsx
=xlSk
-----END PGP SIGNATURE-----
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.