# token-local-variable

<token-local-variable> expands to the value of the named local variable. If this token is evaluated in a context where a node-set result is not expected and the variable holds a node-set, then the string value of the node set is returned. If the same local variable exists in both the policy scope and the driver scope, the variable in the policy scope takes precedence.

### Example

>     <token-local-variable name="myVariable"/>

## 1. Allowed Content

> EMPTY

## 2. Attributes

> Attribute | Value(s) | Default Value
> --- | --- | ---
> name | CDATA name of the variable supports variable expansion after expansion, must be a legal XML Name | #REQUIRED
> notrace | true | false true if this element should not be traced during execution of policy | false

## 3. Content Declaration

> Empty

## 4. Parent Elements

> arg-association
>   association argument
> arg-component
>   component argument
> arg-dn
>   DN argument
> arg-node-set
>   node set argument
> arg-object
>   Java Object argument
> arg-password
>   password argument
> arg-string
>   string argument
> arg-value
>   value argument
> token-base64-decode
>   decode base64 data into a string
> token-base64-encode
>   encode a string into base64 data
> token-convert-time
>   convert a date/time from one format to another
> token-escape-for-dest-dn
>   convert a string for use in a destination DN
> token-escape-for-src-dn
>   convert a string for use in a source DN
> token-join
>   join a node-set into a string
> token-lower-case
>   convert a string to lower case
> token-map
>   map a string through a mapping table
> token-parse-dn
>   parse and/or convert a DN
> token-replace-all
>   replace all instances of a substring within a string
> token-replace-first
>   replace a single instance of a substring within a string
> token-split
>   split a string into a node-set
> token-substring
>   substring of a string
> token-upper-case
>   convert a string to upper case
> token-xml-parse
>   parse XML
> token-xml-serialize
>   serialize XML

Top Elements || All Elements || Tree