One way:

<c:set var="key"><x:out select="$transformed/Products/Product[1]/@l_id"/></c:set>
<c:out value="${key}"/>

Rashmi Rubdi wrote:
Hello, I searched everywhere for a solution, but couldn't find an answer to this scenario: If I output the value of the attribute l_id as follows, the correct output - attribute's value - is being displayed
  <x:out select="$transformed/Products/Product[1]/@l_id"/>
However, If I try the following, the value of attribute l_id is being printed as [l_id="some_value"] instead of just some_value <x:set var="key" select="$transformed/Products/Product[1]/@l_id" />
<c:out value="${key}"/>
How do I make only the xml node's attribute value be stored in the variable while using x:set ?

--
Kris Schneider <mailto:[EMAIL PROTECTED]>
D.O.Tech       <http://www.dotech.com/>

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

Reply via email to