Oops, had that folder sorted wrong and didn't see Bob had already replied. He always seems to know an easier way to do things :-)
David > -----Original Message----- > From: Bob Stayton [mailto:[email protected]] > Sent: Wednesday, April 15, 2009 10:37 AM > To: Tobias Anstett [k15t.com]; [email protected] > Subject: Re: [docbook] Localization - How to overwrite a > single property in all 45 languages > > Hi, > I don't know of a way to do it at the gentext template level, > but it can be done pretty easily at the xsl template level. > > To fetch a gentext template, the stylesheet applies templates > to the target element in mode="object.xref.template", which > is to return the value of the @text attribute in the gentext > l:template element. In the stock stylesheets, there is a > single template in that mode with match="*" to handle all > elements. It determines the current language, checks for > local definitions, checks for numbering context, and finally > picks the best fit. > > Because it is a mode, you can add your own template with > match="section" to override it. In your case, something as > simple as this should work > (untested): > > <xsl:template match="section" mode="object.xref.template"> > <xsl:text>%t</xsl:text> > </xsl:template> > > Since it isn't selective based on language, it should work > for all languages. > > Bob Stayton > Sagehill Enterprises > [email protected] > > > ----- Original Message ----- > From: "Tobias Anstett [k15t.com]" <[email protected]> > To: <[email protected]> > Sent: Wednesday, April 15, 2009 4:47 AM > Subject: [docbook] Localization - How to overwrite a single > property in all > 45 languages > > > > Hi, > > > > Does anybody know how to overwrite a gentext value for all 45 > > languages? It would be very displeasing to do it manually... > > > > <l:l10n language="XXXXXXXX"> > > <l:context name="xref"> > > <l:template name="section" text="%t"/> > > </l:context> > > </l:l10n> > > > > Cheers, > > Tobias > > > > > --------------------------------------------------------------------- > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
