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

  • 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. – Dominic Cronin Apr 19 '14 at 14:06
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)
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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