4

We have newly migrated to Tridion 2013 SP1 and as the xslt mediator extension is depricated and the new inbuilt xslt mediator is introduced in this version.

I wanted to know how we need to pass the parameters to the XSLT TBB inorder to set the values of "output type","package items name prefix" etc.

for input and output we are using

<?XsltMediator inputItemName="Output1" outPutItemName="Output2"?>

Also while converting the legacy XSLT's to the new XSLT's does the the parameter schema come into picture which was being used in earlier version XSLT Tbb's.

Thanks

1
  • The fact that Tridion now ship an XSLT mediator has no impact whatsoever on the formal status of the old XSLT mediator, as it was never a supported product. Commented Apr 19, 2014 at 14:06

1 Answer 1

4

To pass parameters to an XSLT building block, you simply need to add the parameters to the package, as described in the documentation.

Quoting the example from that documentation page: if your XSLT expects a parameter myParam like this:

<xsl:param name="myParam">My Default Value</xsl:param>

... then you can set this value in an earlier template building block, like this:

package.PushItem("myParam", Item)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.