Let's say we want to perform a search on our text.  We've tried to do it
in this way, e.g. to search for "Brian":

  <x:parse xml="${xmlFile}" var="doc"/>
  <x:out select="$doc//text()[contains(.,'Brian')]"/>

However it seems very hard to parameterize the most crucial part, namely
the value of the "select" attribute in <x:out>. We've tried setting
"$doc//text()[contains(.,'Brian')]" as a parameter earlier in the page
and then using it as the value on select=, but in every case we got
either an Apache error message or an STL error message. It seems that
the select= value really has to be in the form of an XPath.

Is there any way a parameter can be used here?

If not, is there a way to work around this, i.e. to have the query page
contain code that actually writes out a new JSP and send *that* to tomcat?
That way we could take in the query XPath expression as a variable value,
and then write it out as a string in the new page. Does that make sense?

Thanks,
-carole 



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to