for $skill in $allskill
return <skill name = "{data($skill)}">{(for $i in 1 to 5
return (<count level = "{data($i)}" n = "{count($resumeSkills[@what = "SQL" and @level = "5"])}"></count> ))} </skill>
The snippet of code above works just fine how the code below does not.
for $skill in $allskill
return <skill name = "{data($skill)}">{(for $i in 1 to 5
return (<count level = "{data($i)}" n = "{count($resumeSkills[@what = "{data($skill)}" and @level = "{data($i)}"])}"></count> ))} </skill>
Any help will be appreciated. Thanks .