To avoid conflicts between environment variables and properties defined by Zorba, all environment variables are prefixed with env..
For instance, the following query:
import module namespace system = "http://www.zorba-xquery.com/modules/system"; for $prop in system:properties() return concat($prop, ": ", system:property($prop), " ")
Will output:
env.TERM_PROGRAM: Apple_Terminal ...In this example, it is important to notice that the environnement variable PATH with the key env.PATH.
all-properties
() as object()
This function retrieves all names and values from the current system properties. |
properties
() as xs:string* external
This function retrieves the names of the current system properties. |
property
($key as xs:string) as xs:string? external
Gets the system property indicated by the specified key. |
declare %an:nondeterministic function system:all-properties() as object()
To avoid conflicts between environment variables and properties defined by Zorba, all environment variables are prefixed with env..
declare %an:nondeterministic function system:properties() as xs:string* external
To avoid conflicts between environment variables and properties defined by Zorba, all environment variables are prefixed with env..
declare %an:nondeterministic function system:property($key as xs:string) as xs:string? external
$system:ZORBA-VERSION-PATCH as xs:string
$system:ZORBA-VERSION-MINOR as xs:string
$system:ZORBA-VERSION-MAJOR as xs:string
$system:ZORBA-VERSION as xs:string
$system:ZORBA-MODULE-PATH as xs:string
$system:USER-NAME as xs:string
$system:LINUX-DISTRIBUTOR-VERSION as xs:string
$system:LINUX-DISTRIBUTOR as xs:string
$system:HARDWARE-MANUFACTURER as xs:string
$system:HARDWARE-VIRTUAL-MEMORY as xs:string
$system:HARDWARE-PHSICAL-MEMORY as xs:string
$system:HARDWARE-LOGICAL-PER-PHYSICAL-CPU as xs:string
$system:HARDWARE-PHYSICAL-CPU as xs:string
$system:HARDWARE-LOGICAL-CPU as xs:string
$system:OS-IS64 as xs:string
$system:OS-ARCH as xs:string
$system:OS-VERSION as xs:string
$system:OS-VERSION-VERSION as xs:string
$system:OS-VERSION-RELEASE as xs:string
$system:OS-VERSION-BUILD as xs:string
$system:OS-VERSION-MINOR as xs:string
$system:OS-VERSION-MAJOR as xs:string
$system:OS-NODE-NAME as xs:string
$system:OS-NAME as xs:string