Skip to content

Extension org.gramar.base Tag set

chrisgerken edited this page Sep 14, 2015 · 2 revisions

set Tag

The set tag Sets the value of an attribute on a given node to the resolved content of the tag.

If the given XPath expression resolves to multiple nodes, the tag acts against the first node in that collection.

  • node select - (required) An XPath expression resolving to a single node
  • string name - (required) The name of the attribute to be set

Usage and examples

Place a taglib element within <taglibs> element in the gramar.config file in the root of your gramar:

<taglibs>
    <taglib  prefix="c" extension="org.gramar.base" />
</taglibs>

Return to org.gramar.base

Clone this wiki locally