Re: Use "value" as an attribute name

Erin Drummond <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
Assuming you're accessing 'param' via var.value.param, does
var.value["value"] work?

On Thu, Sep 23, 2010 at 10:53 AM, Upravdom <[email protected]> wrote:
>
> Hello folks.
>
> Let's say I have an XML like this:
> <items>
> <item param="123" value="456"/>
> <item param="123" value="456"/>
> <item param="123" value="456"/>
> </items>
>
> How do I get the value of the attribute "value"?
> If I iterate through list of "items", making that list a "var" sequence
> variable, then var.value.value doesn't seem to be working.
>
> Any ideas?
> --
> View this message in context: http://freemarker.624813.n4.nabble.com/Use-value-as-an-attribute-name-tp2551194p2551194.html
> Sent from the freemarker-user mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> FreeMarker-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/freemarker-user
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.