Specifications
into a single string. Leading and trailing whitespace is
removed. Whitespace including linebreaks may occur in the
body of the string.
Same as getString but interprets the string as a decimal
number with support for negative and positive infinity (-INF
getNumber( xpath : String,
prefix-map: Map ) : Number
and INF) as per the JDF specification. Numbers outside the
range of the scripting language are clipped to negative of
positive infinity.
Same as getString but interprets the string as a boolean
(“true” or “false”) as per the JDF specification.
getBoolean( xpath : String,
prefix-map: Map ) : Boolean
Same as getString but interprets the string as a date and/or
a time according to the JDF specification (based on the ISO
getDate( xpath : String,
prefix-map : Map ) : Date
8601 format). The class of the returned Date object is specific
to the scripting environment in use.
XMP data model
The XMP data model describes a class that inherits all functions described in the Dataset class.
Query language
The XMP data model expects a backing file that conforms to the Adobe XMP specification dated
June 2005. The XMP backing file is parsed into an XMP-specific document object model. This XMP
object model is then queried with an XMP location path (which is a small subset of XPath 1.0).
The standard built-in aliases for XMP property names are automatically resolved.
Note:
An XMP packet or file is a subset of RDF serialized to XML. Because a particular RDF construct (and
thus an XMP property) can be serialized to XML in various ways, it is virtually impossible to
correctly query an XMP file using generic XPath 1.0 expressions.
Namespaces
Namespace prefixes in the XMP location path are resolved into namespace URIs using the prefix
map provided to the query functions as a second argument. If the map argument is omitted or
null, the default prefix map is used for resolving prefixes.
The query functions do not provide a separate argument to specify the top-level namespace
(also called the “schema namespace” in XMP). This means that all property names in the XMP
location path (including the top-level property name) must have a namespace prefix.
The default prefix map for a dataset with this model includes all mappings for the standard XMP
namespaces, augmented with any extra mappings that occur in the backing file.
Querying existence
Returns true if there is a leaf property at the XMP
location path.
hasLeaf( xmp-path : String, prefix-map :
Map ) : Boolean
481
Enfocus Switch 10