Create a ScriptRule to conditionally author either local or global stubbing commands:
FILE: usr\StandardUpgrade.Rules.xml
<ScriptRule id="SupportFramework">
<!--
Support Framework Conventions
-->
<Option Condition="'%TaskTag%'=='std'">
<Select LocalBuildFile="%ProjFolder%\idf\%TaskTag%local" />
<Select BuildFileLibrary="local%RuntimeFolder%" />
<Select LibraryLocal="%RuntimeFolder%%ProjFolder%\idf\%TaskTag%" />
</Option>
<Option Condition="'%TaskTag%'!='std'">
<Select LocalBuildFile="%ProjFolder%\idf\%TaskTag%global" />
<Select BuildFileLibrary="global%DeployFolder%" />
<Select LibraryLocal="%DeployFolder%%ProjFolder%\idf\%TaskTag%" />
</Option>
</ScriptRule>
...
Reference the SupportFramework rule in the template translation script. This ScriptRule
element may replace the BuildFile and Library commands normally placed in the file.
FILE: MigName.std.Tran.xml
<!-- Translation options -->
<Select GlobalSettings="%UserFolder%\GlobalSettings.xml" />
<Select Progress="1" />
<Select DevEnv="%DevEnv%" />
<Select Dialect="%Dialect%" />
<Select OptionalArguments="on" />
<Select DeployLocation="%NetProjFolder%" />
<Registry type="GUID" source="Project" target="{%TaskGuid%}"/>
<ScriptRule id="SupportFramework" FileName="..\usr\StandardUpgrade.Rules.xml" /> <--- add this |