Transformation Processing: Second Pass

This section discusses the second pass of transform processing, during which the psft_function calls are resolved and the codeset values are placed into the document.

Assuming that no errors were encountered in the processing in the first pass a complete XML document will be available, containing the formatted PeopleSoft CRM purchase order message. However, this XML will still contain the reference:

      <SHIPPER IsChanged="Y">
         <psft_function name="codeset" codesetname="SCM_CODESET">
            <parm name="CARRIER_ID">USPS</parm>
            <value name="SHIPPER" select="."/>
         </psft_function>
      </SHIPPER>

The second pass walks through the message and resolves all calls to psft_function. In this instance the codeset lookup will be run, and the psft_function node will be replaced with the result. The XML in the output message will then look like:

      <SHIPPER IsChanged="Y">
         United States Postal Service
      </SHIPPER>

After the second pass completes, the transform is complete.