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: ji...@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
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to