# copy-attr

Deprecated as of DirXML 2.0 - use DirXMLScript <token-op-attr>.

<copy-attr> is used as a token to specify a string replacement in the distinguished name generated by the enclosing <placement>.

The replacement string is generated by copying the first value for the attribute specified by attr-name from the <add> event that is being processed. If the attribute does not exist, then the enclosing <placement-rule> will be skipped. Structured attribute types are not supported.

Example

See <placement-rules>

## 1. Allowed Content

> EMPTY

## 2. Attributes

> Attribute | Value(s) | Default Value
> --- | --- | ---
> attr-name | CDATA The name of the attribute. The name is mapped between the application and eDirectory name spaces by the schema mapping rule so that DirXML will see the name in the eDirectory name space and a driver will see the name in the application name space. The mapping rule uses the class-name attribute of the enclosing command or event to determine which class to use for mapping the attribute name. | #REQUIRED

## 3. Content Declaration

> Empty

## 4. Parent Elements

> placement
>   Object placement specifier. Deprecated as of DirXML 2.0.

Top Elements || All Elements || Tree