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] Profiling Template cross.compare template


Sam Fischmann wrote:

> Can anybody explain why these two if statements aren't in a
> <xsl:choose> block?

Legacy code which has been refactored many times, matter of writing
style, ...

> If the result string has any characters in it at
> all, the element is included, so it makes no difference if the result
> is "1" or "1111". As far as I can tell, no other operations are
> performed on that result. What is the point of continuing to compare
> against the remaining profiles? Is it a performance thing? Just
> curious.

My bet is that originaly code was able to handle only one profiling
condition and support for more were added later without refactoring
whole code. You can try to dig this in repository logs.

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

OpenPGP digital signature



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