hi all,
i need to check xml attribute if is is empty or not.
when i use:
<Style useCriteria="strlen("[my_feature:my_list]") > 0">myType</Style>
the strange behaviour appears:
in case my list is empty. strlen == 0 (thats ok), if there is one row in my grid strlen > 0 (tahts ok), if there is two and more rows in my grid strlen == 0 again (thats wrong)
any idea how to check if my list is empty or has one or more rows?
my list looks like this:
<myList>
<row><col1>1</col1> <col2>aaa</col2> </row>
<row><col1>2</col1> <col2>bbb</col2> </row>
</myList>
thanks for any idea
Jan
it seems like it depend on xml fragment lenght .. xfm engine is not able to return xml attribute string value when lenght is more than 255 chars long. my workaroud is: create c-expresion function and get feature attribute directly via xfm feature manager and groupname (XFM API). greetings Jan
Answer Verified By: Jan Vagner