Namespace Example

Microsoft® Provisioning Framework (MPF) uses to associate providers and procedures with the Configuration Database. The following example shows a namespace named New Namespace that has one procedure, New Request.

<namespace name="New Namespace" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <procedure name="New Request" type="write" access="public">
	<execute namespace="Test Namespace" procedure="Write Request">
	<forEach name="organization" root="data" 
		path="organizations/organization"/>
	<before source="organization" destination="executeData">
		<xsl:template match="organization[@type='primary']">
		<primaryOrg>
			<xsl:value-of select="@name"/>
		 </primaryOrg>
		</xsl:template>
		<xsl:template match="organization[@type='secondary']">
		 <secondaryOrg>
			<xsl:value-of select="@name"/>
		</secondaryOrg>
		</xsl:template>
	</before>
	<after source="executeData" destination="data" 
		destinationPath="orgSignup" mode="merge"/>
	</execute>
  </procedure>
</namespace>

In the procedure definition:

See Also

Developing Custom Namespaces, Registering Namespaces in MPF, XML Schema for Namespaces