http://onionworks.net/2006/imageservice/encoders

createPcxEncoder () : nodeset

Die Methode dient zur Umwandlung eines Bildes in das PCX Bildformat und wird wie in dem folgenden Beispiel verwendet.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ise="http://onionworks.net/2006/imageservice/encoders" xmlns:is="http://onionworks.net/2006/imageservice" xmlns:b="http://onionworks.net/2004/renderengine/binary" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:output method="xml" omit-xml-declaration="yes" indent="no" />
<xsl:template match="/resource">
<xsl:variable name="workspace" select="is:createWorkspace(@src, true())" />
<xsl:variable name="doWrite" select="is:writeWorkspace($workspace, ise:createPcxEncoder())" />
<b:output mimeType="image/psx">
<b:webResponse expires="60" />
</b:output>
</xsl:template>
</xsl:stylesheet>
Beispiel PCX Encoder

Hier wird ein Bild in den Arbeitsspeicher geladen und anschließend mit dem PCX Bildformat ausgegeben.