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


I was looking at the profiling templates, and I was wondering about
this snippet in cross.compare:

  <xsl:if test="contains(concat($sep, $b, $sep), concat($sep, $head,
  <xsl:if test="$tail">
    <xsl:call-template name="final.cross.compare">
      <xsl:with-param name="a" select="$tail"/>
      <xsl:with-param name="b" select="$b"/>

Can anybody explain why these two if statements aren't in a
<xsl:choose> block? 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



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