Documentation Center

Changing the input package item to transform

By default, the XSLT template transforms the item called Component (if the Template Building Block is part of a Component Template) or Page (if part of a Page Template). You can override this default, however.

Procedure

  1. Open your XSLT template for editing.
  2. At the start of your template, add the following line:
    <?XsltMediator inputItemName="MyItem"?>

    where MyItem is the name of an item in the input package you want to transform.

  3. Alternatively, to transform an item whose name is the value of an XSLT parameter, add the following line instead:
    <?XsltMediator inputItemName="{$myParam}"?>

    where myParam is the name of a parameter specified in an xsl:param element.