OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Match on Language


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 | anders.svensson@paligo.se 
Sankt Eriksgatan 117 | 113 43 Stockholm | Phone: +46 70 815 99 02 



On 7 September 2016 at 19:58:10, Frank Arensmeier (farensmeier@gmail.com) 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 <peterfleck@gmail.com>:
>
> 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: docbook-apps-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]