It is not possible to use the AMPScript function TransformXML with ContentBuilder assets.
Trailblazer Community

It is not possible to use the AMPScript function TransformXML with ContentBuilder assets.

Marketing Cloud Email Studio

Last updated 11 days ago ·Reference W-6288761 ·Reported By 7 users

In Review

Summary
It is not possible to use the TransformXML function with Content Builder assets, it doesn't appear to work without the GetPortfolioItem function (which only works with Classic Content items).

Repro
Method One

Upload XML and XSL files to Content Builder(example: https://www.w3schools.com/xml/tryxslt.asp?xmlfile=cdcatalog&xsltfile=cdcatalog)
Attempt to use: %%= TransformXML(ContentBlockById("xmlID"), ContentBlockById("xslID")) =%%
Method fails because those files are not considered content blocks
Method Two

Copy/Paste XML and XSL files into separate Code Snippets
Attempt to use: %%= TransformXML(ContentBlockById("xmlID"), ContentBlockById("xslID")) =%%
Fails with the error: Failed to parse XML document. See inner exception for details. XML Starts With: Empire BurlesqueBob DylanUSAColumbia10.901985Hide


Method Three

Import the XML and XSL into a data extension (example file included)
%%[ TransformXML(Lookup('TransformXMLTest', 'XML', 'ID', 1), Lookup('TransformXMLTest', 'XSL', 'ID', 1)) ]%%
Fails with the error: Failed to parse XSL document. See inner exception for details. XSL Starts With: <?xml version="1.0" encoding="UTF-8"?><xsl:stylesh" Missing mandatory attribute 'select'.

Workaround
Currently the only workaround is utilize Classic Content.

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.