Triggers and XSL Transformations

I was hoping there might be a way to use a Trigger to automatically apply an XSL transforamtion to a newly created XML file rather than having to set this each time in the Transformations section of the XML file?


So far I have created a trigger with an Event set to 'Asset Created' and a Condition set to 'Tree Location' of then folder where the XML file assets are created, but can't workout what Action to use? Any pointers would be most welcome.

[quote]
I was hoping there might be a way to use a Trigger to automatically apply an XSL transforamtion to a newly created XML file rather than having to set this each time in the Transformations section of the XML file?



So far I have created a trigger with an Event set to 'Asset Created' and a Condition set to 'Tree Location' of then folder where the XML file assets are created, but can't workout what Action to use? Any pointers would be most welcome.

[/quote]



Hi,

If you see under existing XML file on linking screen(children of XML file) you will see that the XSL file is notice linked there with link value of 'transform'.



You should be able to use a Create Link Trigger Action, as when a XSL file asset is selected on the a XML file's

"Transformations" screen, all Matrix does is create a NOTICE link.



Hope this helps.



Ash

Much appreciated, now working great. I had to set value to 'transform' in Trigger Link settings in case anyone else wonders. :smiley: