Added by Martijn Vos, last edited by Martijn Vos on Aug 15, 2008

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.

The Hippo Extract XML to Property plugin extracts a value from the XML content of a document, and asigns it to a specified property.

Getting the code

The code is availlable from SVN.

Configuration

location.host=localhost
location.port=60000
location.rootpath=/default
location.path=/files/default.preview/content/bulk

authentication.realm=default realm
authentication.username=root
authentication.password=password

threading.maxthreads=1

plugin.1.classname=nl.hippo.webdav.batchprocessor.xml2propertyextractor.XML2PropertyExtractor

plugin.1.configuration.transformer.stylesheet=extracttitle.xsl
plugin.1.configuration.property.namespace=http://hippo.nl/cms/1.0
plugin.1.configuration.property.name=caption

plugin.1.configuration.transformer.stylesheet is an XSLT file that takes the XML content of the file and turns it into the value for the property. Often this is something like:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/">
    <xsl:value-of select="normalize-space(/document/content/titel)"/>
  </xsl:template>
</xsl:stylesheet>

plugin.1.configuration.property.namespace is the namespace of the property this vallue will be asigned to
plugin.1.configuration.property.name is the name of the property.