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 | [email protected] Sankt Eriksgatan 117 | 113 43 Stockholm | Phone: +46 70 815 99 02 <//+46 70 815 99 02> <http://www.paligo.net> www.paligo.net <http://www.paligo.se/> T <http://www.paligo.se/>he truly user-friendly CMS for techn <http://www.paligo.se/>ical documentation <http://www.paligo.se/> On 7 September 2016 at 19:58:10, Frank Arensmeier ([email protected]) 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 <[email protected]>: > > 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: [email protected] > For additional commands, e-mail: [email protected] > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
