http://www.w3.org/1999/XSL/Transform
c.binaryCall ([target : xlink], method : string, [name : string, value : string]*) : nodeset
The function binaryCall executes a given binary method und returns its metadata output as a nodeset. The binary output is not accessible. Usually the metadata output is used to customize a binary renderer. If you need to obtain information which was only present at the binary rendering time, you may add this information into the metadata output.
The argument can be an xlink or a method name.
<xsl:stylesheet xmlns:binary="http://onionworks.net/2004/renderengine/binary" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
</xsl:stylesheet><binary:output mimeType="image/pjpeg" length="1234">
</xsl:template><binary:webResponse expires="60" />
</binary:output>Basic binary method
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
</xsl:stylesheet><xsl:copy-of select="c.binaryCall('onion://data/objects/100', 'thumbnail')" />
<xsl:variable name="binaryResult" select="c.binaryCall('onion://data/objects/100','thumbnail','mode','large')/binary:output" />
Expires: <xsl:value-of select="$binaryResult/binary:webResponse/@expires" />
<br />
Length: <xsl:value-of select="$binaryResult/@length" />
<br />
</xsl:template>Execution of a binary method
The first call prints the whole metadata output. The second call stores the result in a variable to print some details.