http://onionworks.net/2006/imageservice

extractMetadata (target : xlink, type : string, [fromDataSource : boolean]) : nodeset

With this method it is possible to read out the meta data from picture data. Picture data can be loaded either directly via the data source (default) or via a binary method. If the picture data is loaded via a binary method, then the parameter “fromDataSource” must be allocated the value “false”. If the picture data is loaded via a data source however, then the parameter “fromDataSource” can be omitted, since it is allocated the value “true” by default. Possible values for the parameter “type” can be seen in the following list.

  • iptc
  • xmp
  • exif

In the following example, the iptc meta data is read out and output from a data source in an XML method.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:is="http://onionworks.net/2006/imageservice" 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="metaData" select="is:extractMetadata(@src,'iptc')" />
<xsl:copy-of select="$metaData" />
</xsl:template>
</xsl:stylesheet>
Reading out meta data

Outputting the method could supply the following result.

<iptc>
<tag section="2" id="5" index="0">example</tag>
<tag section="2" id="25" index="0">example</tag>
<tag section="2" id="105" index="0">example</tag>
<tag section="2" id="120" index="0">example</tag>
</iptc>
IPTC output

You will find more detailled information on IPTC and XMP on the following pages

http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/IPTC.html

http://www.adobe.com/products/xmp/ .