The base product uses XSL transformation (XSLT) as an example for how to map the raw form upload data into the target form objects.
Since the input raw form upload data and the target form BO schemas are both in XML format, it makes sense to use XSLT. XSLT is a standard technique for transforming one XML document to another XML document. The key components in this approach are the XSLT Processor and the XSL style sheets.
XSL Transformation
The framework is already using an XSLT processor for transforming XMLs not only into other XMLs but also into HTMLs. A base business service calls an existing Java method for invoking that XSLT processor.
The base product provides a sample XSL file for mapping to the existing C1-SalesAndUseTaxForm business object - i.e. C1-SalesAndUseTaxForm.xsl.
The sample Sales & Use XSL logic assumes a very specific 'raw' XML data form that was not based on any single real-life sales & use form. This sample XSL is just meant to demonstrate this particular mapping approach.
Both base product and CM XSL files need to be stored in specific locations in the file system that ETM Release Services designate.
Base files are stored in @SPLEBASE@/splapp/resources/xsl/.
CM files are stored in @SPLEBASE@/splapp/resources/xsl/cm/.
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.