todocmeta

Purpose

Provides metainformation about a document.

Syntax

todocmeta(metainformation)

Arguments

The function takes the following required parameters:

Parameter

Comments

title

document’s title

author

document author’s name

keyword

document’s keywords

subject

document’s topic

time_created

document’s creation time

time_modified

time of the document’s last modification

num_pages

document’s number of pages

Returned Value

It is integer for the num_pages parameter, Date/Time for time_created and time_modified, and text for the other parameters.

Examples

XPDL-rule

rule: metadata
{

query: {keyword(noun)}:m

result: Keyword = $m
attribute: title = todocmeta(title)
attribute: author = todocmeta(author)
attribute: keywords = todocmeta(keyword)
attribute: subject = todocmeta(subject)
attribute: time_created = todocmeta(time_created)
attribute: time_modified = todocmeta(time_modified)
attribute: numpages = todocmeta(num_pages)
}