SourceForge.net Logo

Taconite Action Reference

This page lists the actions available for a Taconite response. Many of the action types are identical to those described by the W3C's Document Object Model Load and Save specification. See the examples for more on their use.

Append as Children

Append the specified content as children of the context nodes.

XML tag:

  • <taconite-append-as-children>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Any XML content.

Append as First Child

Append the specified content as the first child of the context nodes.

XML tag:

  • <taconite-append-as-first-child>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Any XML content.

Delete

Delete the context nodes.

XML tag:

  • <taconite-delete>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Empty.

Insert After

Insert the content as the immediately following sibling of the context nodes.

XML tag:

  • <taconite-insert-after>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Any XML content.

Insert Before

Insert the content as the immediately preceding sibling of the context nodes.

XML tag:

  • <taconite-insert-before>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Any XML content.

Replace Children

Replace all of the children of the context nodes with the contents of this tag.

XML tag:

  • <taconite-replace-children>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Any XML content.

Replace

Replace the context nodes with the contents of this tag.

XML tag:

  • <taconite-replace>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."

Content:

  • Any XML content.

Set Attributes

Set the specified attributes on the context nodes.

  • <taconite-set-attributes>

Attributes:

  • matchMode="plain" || matchMode="wildcard" || matchMode="selector"
  • contextNodeID="nodeID1, nodeID2, ..." || contextNodeSelector="cssSelector1, cssSelector2, ..."
  • The list of attributes that will be set on the matching context nodes.

Content:

  • Empty.

Execute JavaScript

Execute the JavaScript that occurs inside of contained script tags.

  • <taconite-execute-javascript>

Attributes:

  • None.

Content:

  • Any <script type="text/javascript"> tag.

Redirect

Redirect the browser to the specified URL.

  • <taconite-redirect>

Attributes:

  • targetUrl="URL_TO_REDIRECT_TO"

Content:

  • Empty.