All,
For the life of me, I cannot figure out why the following examples produce
different results. Many thanks in advance if anyone can help.
I'm importing an XML doc with the following:
<x:parse var="reports">
<c:import url="reports.xml"/>
</x:parse>
If I use
<x:out select="$reports//report[@shortname='biweekly']/id" />
I get the expected result, "157."
However, if I use
<x:set var="reportID" select="$reports//report[@shortname='biweekly']/id"
/>
<c:out value="${reportID}" />
I get, "[[id: null]]".
The xPath syntax is obviously correct, as I'm getting the expected result
with the x:out tag. So, any idea what I'm doing wrong when I try to expose
the same result in the variable reportID?
Thanks again,
Buck Bell
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>