
CHAPTER 10: Scripting Access to XMP Metadata XMPScript object reference 290
fieldNS
The field namespace URI string.
fieldName
The field name. Must be a simple XML name.
fieldValue
The desired field value.
Creates and returns a string containing the path expression to select an alternate item by a field’s
value, using the registered prefixes for the namespaces, in the form:
schemaNS:arrayName[fieldNS:fieldName=’fieldValue’]
Returns a String.
composeLanguageSelector()
XMPUtils.composeLanguageSelector(schemaNS, arrayName, locale)
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
arrayName
The array property name string. Can be a general path expression.
locale
The RFC3066 locale code string for the desired language.
Creates and returns a string containing the path expression to select an alternate item in an
alt
text
array by language, using the registered prefix for the namespace, in the form:
schemaNS:arrayName[@xml:lang=’langName’]
Returns a String.
N
OTE: Do not use this in place of getLocalizedText() or setLocalizedText(). Those functions provide
extra logic to choose the appropriate language and maintain consistency with the
x-default value.
This function provides a path expression for an explicit language, and only for that language.
composeStructFieldPath()
XMPUtils.composeStructFieldPath(schemaNS, structName, fieldNS, fieldName)
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
structName
The structure property name string. Can be a general path expression.
fieldNS
The field namespace URI string.
fieldName
The field name. Must be a simple XML name.
Creates and returns a string containing the path expression for a field in a structure, using the
registered prefixes for the namespaces, in the form:
schemaNS:structName/fieldNS:fieldName
Returns a String.
composeQualifierPath()
XMPUtils.composeQualifierPath(schemaNS, propName, qualNS, qualName)
schemaNS
The namespace URI string. See “Schema namespace string constants” on
page 262.
propName
The property name string. Can be a general path expression.
qualNS
The qualifier namespace URI string.
Komentáře k této Příručce