the attributes method

In order to get the attributes of the template tag you are handling you can use the attributes method. It will return a hash of all the xml attributes for the tag you are currently handling. Suppose you have a tag like so: <BKsometag attrib1="foo" attrib2="bar" /> The attributes method will return a hash with the keys attrib1 and attrib2 with their corresponding values.

Jeremy Wall 2006-08-21