tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kris Schneider <k...@dotech.com>
Subject Re: Value of the variable set with x:set , is [attribute_name=attribute_value] instead of just attribute_value
Date Thu, 03 Aug 2006 00:55:32 GMT
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:kris@dotech.com>
D.O.Tech       <http://www.dotech.com/>

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message