Documentation Center

IWriteMetadataAndBlobPlugin - BlobWordCount

Updates the given metadata field with the word count.

Plugin Configuration

The following workset fields need to be configured:
Field NameField Level
The name of the field specified in the MetadataField parameter (e.g. FISHWORDCOUNT)The level of the field specified in the MetadataFieldLevel parameter (e.g. lng )
The following parameters can be configured:
ParameterRequiredDefault valueAllowed valuesDescription
ExtractXPathNo//text()XPath query syntax used to search and retrieve the information from within the supplied XML document
MetadataFieldNoFISHWORDCOUNTThe metadata field which should be set
MetadataFieldLevelNolnglogical, version, lngThe metadata field level

plugin name="ISHSYSWORDCOUNT" example

The following configuration updates the FISHWORDCOUNT metadata field with the word count.
<plugin name="ISHSYSWORDCOUNT" handler="BlobWordCount" 
								ishcondition="CurrentAction in ('Create', 'Update', 'Checkin') and (EDT='EDTXML')">
          <description>Counts the words in the document</description>
          <workingset>
            <ishfields>
              <ishfield name="FISHWORDCOUNT" level="lng" />
            </ishfields>
          </workingset>
          <initialize>
            <parameters>
              <parameter name="ExtractXPath">//text()</parameter>
              <parameter name="MetadataField">FISHWORDCOUNT</parameter>
              <parameter name="MetadataFieldLevel">lng</parameter>
            </parameters>
          </initialize>
        </plugin>