Hi Peter,
As far as I can see, this can never work at all. If you were to ever get a match on this template (which I don't think you would), it would mean it would override any template with this attribute, and output nothing but an attribute for the font-family, meaning no content at all.
Without having looked into it in detail, I would say it's more likely you should find the attribute set setting the font-family in the first place, and in that attribute set, use a conditional to set the font-family (xsl:choose). Although that's just a quick reflection without having looked into it too much.
Kind regards,
Anders Svensson
CEO, Paligo
Anders Svensson | Paligo AB |
Sankt Eriksgatan 117 | 113 43 Stockholm | Phone: +46 70 815 99 02
www.paligo.net
The truly user-friendly CMS for technical documentation
On 7 September 2016 at 19:58:10, Frank Arensmeier () wrote:
Hi Peter!
I think it would be helpful to know what you are trying to accomplish. Could you be little bit more specific? Are we talking PDF or HTML output? Or some kind of identity transformation? What is the desired output?
Frank Arensmeier
Paligo - The truly user-friendly CMS for technical documentation
paligo.net
> 7 sep 2016 kl. 18:41 skrev Peter Fleck <>:
>
> Hi all,
>
> I'm trying to set all elements tagged with a particular language to a font.
>
> I tried a few combinations of the below but I don't know what I'm doing. Any help appreciated.
>
> <xsl:template match="d:*[@lang = 'el'] | d:*[@xml:lang = 'el']">
> <xsl:attribute name="font-family">FontName</xsl:attribute>
> </xsl:template>
>
> Many thanks,
>
> Peter
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
---------------------------------------------------------------------
To unsubscribe, e-mail:
For additional commands, e-mail: