i trying determine if items in list pass test.
i using following line:
<xsl:with-param name="passed" select="count($list/[fn:inrange(., 2, 5)]) = count($list)"/>
i trying send every child node in list , applying range tool (custom function, works fine). keep getting syntax error.
the problem seems way calling it. specifically, following item:
count($list/[fn:inrange(., 2, 5)])
how can achieve want?
try expression instead...
count($list[fn:inrange(., 2, 5)])
alternatively, try writing whole expression this:
<xsl:with-param name="passed" select="not($list[not(fn:inrange(., 2, 5))]))"/>
Comments
Post a Comment