I am looking for a way to shell out to programs via some sort of XSLT extension and have the returned information available within my transform.  Anything like this available?
 
Specifically, in saxon 8+ I would like to use ImageMagick to return info about an image or modify the image.
 
Something like:
<xsl:variable name="MyImageAttribute" select="shell(identify -myimage.jpg)" /> <!--return info -->
 
<saxon:shell select="convert -rotate 90 myimage.jpg myrotatedimage.jpg" /> <!-- shell out and do something -->
 
Thanks,
Dave