Sun N1 Service Provisioning System 5.1 XML Schema Reference Guide

Attributes for the <subst> Element

The <subst> element has the following attributes:


Example 2–5 Using the <subst> Element

The following transformation converts all occurrences of the string 127.0.0.xxx to 10.10.0.xxx in the /etc/hosts file:


<transform output=”/etc/hosts”>
    <subst match="127\.0\.0\.(\d+)"
    replace="10.10.0.$1"/>
</transform>