I would like to write a script (a perforce trigger), that will validate the content of the files in the changelist before allowing commit. However my script processes the XML using Xsltproc and then validates using Jing. I need to save the intermittent output to a temp file - can that be done when writing a change-content trigger (server-side) for perforce? I have read loads of documentation but never seen any mention of creating temp files while running the trigger script. The only other workaround would be to pipe the output from Xsltproc into Jing (and I have no idea how to do that either).
Any advice form experienced XSLT or Perforce users welcome. Thanks.
BTW I am using perl - but I don't think that would make things any more difficult.