Community articleNamespace in References
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

References that include options or arguments in any namespace other than XFDL normally require the inclusion of the namespace prefix in the reference. For example, if you want to reference "myOption" in the "custom" namespace, refer to that option as "custom:myOption" as shown:
   page_1.myItem.custom:myOption

If you are referencing named arguments, you should also use the appropriate namespace. For example:
   page_1.myItem.custom:myOption[custom:myArgument]

However, if you are referencing an argument by index number you do not need to worry about namespace. All arguments, regardless of namespace, are indexed in order. For example, if "myOption" contains two arguments, the first in the XFDL namespace and the second in the custom namespace, use the following reference for the second argument:
   page_1.myItem.custom:myOption[1]


Note: Page and item references never require a namespace prefix because they are uniquely identified by their sid.
Parent topic:
About references