Re: Value of the variable set with x:set , is [attribute_name=attribute_value] instead of just attribute_value
Kris Schneider <[email protected]>
| Newsgroups | gmane.comp.jakarta.taglibs.user |
|---|---|
| Message-ID | <[email protected]> |
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/>