Good morning all,

I am trying to generate my xpath statement based on parameters, and I find that it 
works perfectly with the exception that the * in the predicate fails when dynamically 
populated, although it works fine when hardcoded.   

So this will work:
<x:forEach select="$doc//employee[role=*]" >

But this will not: 

<c:set var="roleName" value="*" />
<x:forEach select="$doc//employee[role=$roleName]" >
  .....


I'm guessing that the * gets tick marks ( ' ) when it is processed.    Any thoughts?

Thanks, 


Rick

Reply via email to