Configuring transformations
To configure the transformations, edit the
<MEC-dir>/processlist.xml
file installed with
the e-Commerce Extension for MEC. The contents of this file look something
like this:
<port no="2002" detectionkey="ECOM:PriceCheckRequest">
<doctype name="PC-007" inpath="PC-007_in.xsl" outpath="c:\PC-007_out.xsl">
</doctype>
<doctype name="*" inpath="C:\MEC\Price.xsl"/>
</port>
In the example above, the following configuration has been made:
The value of the "detectionkey" and "name" attributes are established at run time by the targets.xml file, as described in Configuring detection key and document type names.
- All incoming XML documents containing the identifier "PC-007" are transformed using the XSL document "PC-007_in.xsl" (situated in the <MEC root dir>) before being processed.
- All other incoming document are transformed using "c:\MEC\Price.xsl". (* denotes a wildcard).
- The XML response is transformed using the document "c:\PC-007_out.xsl" before sending the document back to the request sender.