Boolean "sum" in XSLT -
i know can sum on multiple nodes numeric values. how "boolean sum" on set of nodes? example:
<a> <b>false</b> <b>false</b> <b>true</b> <b>false</b> </a> how boolean or of <b> node values? (which should 'true').
use:
boolean(/*/b[. = 'true']) this produces boolean value of expression:
/*/b[. = 'true'] and true when above look selects @ to the lowest degree 1 node -- is, when there b kid of top element , string value string 'true.
in case want calculate "boolean product" (using and), do:
not(/*/b[. = 'false']) xslt boolean
No comments:
Post a Comment