Decorator Utils: XML Tag Library

This Tag Library is meant to transform simple information stored on a XML document. There is no decorator involved for this is only meant to provide simple iteration through a document's child nodes. You may select the attibutes you wish to manipulate and use them for whatever purpose you want within the body of this tag. This is version 0.6 .

  • xattribute Outputs the value of an attribute from the parent "X-Tag" .
  • xdecorate This tag is meant to transform simple information stored on a XML document .
  • xnested Each XNestedTag nested tag refers to the corresponding nested nodes .
  • xrule This tag enables you to specify rules for the evaluation or not of it's body .

Required attributes are marked with a * .

xdecorate

This tag is meant to transform simple information stored on a XML document. There is no decorator involved for this is only meant to provide simple iteration through a document's child nodes. You may select the attibutes you wish to manipulate and use them for whatever purpose you want within the body of this tag.

Can contain: JSP

Attributes

NameDescriptionType
attributes The attributes you wish to manipulate. They will be stored in the scope with the same name. String
*documentXML document you wish to decorate.String
xpathXpath for the nodes to be selectedString

xnested

Each XNestedTag nested tag refers to the corresponding nested nodes.

Can contain: JSP

Attributes

NameDescriptionType
attributes The attributes you wish to manipulate. They will be stored in the scope with the same name. String
id This id can be used to avoid a clash between the attributes names in the scope. The attributes will be set as [id]_[attribute]. String

xrule

This tag enables you to specify rules for the evaluation or not of it's body.

Can contain: JSP

Attributes

NameDescriptionType
*rules These rules should be separated by semi-colons (';') which will equivelent to an OR operation. These rules should be written in the form: [attribute]=[value] or [attribute]!=[value]. String

xattribute

Outputs the value of an attribute from the parent "X-Tag".

Can contain: JSP

Attributes

NameDescriptionType
*attributeThe name of the attribute to fetch.String