Arbortext Command Language > Functions by Alphabetical Listing > oid_namespace_prefix_defined
  
oid_namespace_prefix_defined
oid_namespace_prefix_defined(oid, uri)
This function determines whether a uri is defined at an oid. If the given uri is not defined at the specified oid, then the function returns a 0. If the given uri is defined at the specified oid, then the function returns a 1.
Following is some example code using this function:
if (oid_namespace_prefix_defined(oid, uri)) {
local prefix = oid_namespace_prefix(oid, url);
if (prefix == "") {
# This namespace is the default namespace at this oid.
}
else {
# This namespace is not the default namespace at this oid.
# However, it is defined and has a prefix whose value is in
# the variable 'prefix'.
}
}
else {
# This namespace is not defined at this oid.
}
Related Topics
oid_namespace_prefix function