About Order Item Context XQuery Expressions

This topic describes how to use the Transformation Sequence editor, Dependencies tab, Order Item Context subtab, Expression area, XQuery subtab to write an expression that defines the context order items for the order transformation. To see the Order Item Context subtab, you must select a transformation stage in the tree on the Dependencies tab.

  • Context: The input document is the complete set of source order items.

  • Prolog: You can declare the order item namespace in the XQuery prolog. For example:

    	declare namespace prop='http://oracle.communications.centralom';
    
  • Body: The XQuery body returns the source order items that should be considered the context for the transformation stage.

The following example shows an XQuery expression for selecting an order item context.

	declare namespace prop='http://oracle.communications.centralom';
	osm:orderItem[osm:properties/prop:serviceIntance = 'Y']