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] gentext.template.exists -- possible bug


Hi Bob,

Thanks. I just filed this as an issue in github. 

Iâll take a look and see if I can find a fix.

Dick
-------
XML Press
XML for Technical Communicators
http://xmlpress.net
hamilton@xmlpress.net



> On Aug 14, 2020, at 00:18, Bob Stayton <bobs@sagehill.net> wrote:
> 
> I'm inclined to think that is a bug, because there are perhaps legitimate reasons for the text attribute of a particular gentext template to be empty in some languages.
> Bob Stayton
> 
> bobs@sagehill.net
> On 8/11/2020 6:06 PM, Richard Hamilton wrote:
>> The template gentext.template.exists in the 1.0 stylesheets has what may be a bug.
>> 
>> This template says that it returns 1 if a gentext template exists for a particular context and name and 0 if the template doesnât exist.
>> 
>> However, if a gentext template does exist, but it has a text value that is empty (e.g., <l:template name=âsomenameâ text=ââ/>), gentext.template.exists returns 0, not 1.
>> 
>> That is, it doesnât distinguish between a template with a null value for the text and a non-existent template.
>> 
>> My question is whether this is a bug or a feature? Iâm inclined to think itâs a bug, but Iâm not sure.
>> 
>> If itâs a bug, Iâm glad to file a report.
>> 
>> Best regards,
>> Dick Hamilton
>> -------
>> XML Press
>> XML for Technical Communicators
>> 
>> http://xmlpress.net
>> hamilton@xmlpress.net
>> 
>> 
>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]