r:prefixed-unit-string

xs:string=r:prefixed-unit-string( $unit-string as xs:string, $namespace-map as xs:string*)

Last updated on 25-05-2023 at 00:00:00.

Takes a string in expanded unit string representation format, and returns it in the QName-based unit string representation format.

OIM Common 1.0

OIM Status

Supported

Parameters

Name Type Details
unit-string xs:string A unit value in expanded unit string representation format.
namespace-map xs:string* A sequence of string values, each containing space-separated prefix / namespace URI pairs. Each value must consist of an xs:NCName, followed by a single space character (0x20), followed by an xs:anyURI.

Output

Type: xs:string

The unit expressed in unit string representation. The prefix used for a namespace will be: the reserved prefix from OIM Common if present, otherwise the prefix associated with the URI in the provided namespace-map, if any, otherwise an arbitrary prefix assigned by the processor.

Errors

Code Details
re:invalidExpandedUnitStringRepresentation Error thrown if the provided value is not a valid expanded unit string representation.
re:invalidNamespaceMap Error thrown if the provided namespace-map does not conform to the prescribed format, or if the same prefix or namespace URI appears more than once within the map.

Owners

Name Affiliation Email Start End
Paul Warren XBRL International pdw@xbrl.org 25-05-2023 at 00:00:00