Used to access the value of a specific device policy for the current target device. If no value for the specified policy can be found, an empty sequence is returned. Otherwise the value of the policy is returned as a string.
The device:getPolicyValue function is deprecated. The device:policy-value function should be used instead.
device:getPolicyValue(name as xs:string) as xs:string
Name | Description | Type | Use |
---|---|---|---|
name | The device policy whose value is to be returned. Valid values for this parameter are the names of device policies used in MCS APIs. | xs:string | required |
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
xmlns:pipeline="http://www.volantis.com/xmlns/marlin-pipeline">
<head>
<title>device:getPolicyValue</title>
</head>
<body>
<p>Usable width: <pipeline:value-of expr="device:getPolicyValue('pixelsx')"/></p>
</body>
</html>