XML Transformation Parameters

The parameters in this section configure how CFS transforms ingested XML.

If you only need to handle XML files that match one schema, you can set the ValidationSchema and TransformationStylesheet parameters in the [XmlTransformation] section:

[XmlTransformation]
ValidationSchema=schema.xsd
TransformationStylesheet=transform.xslt

If you need to handle many different XML files, you can use the Sections parameter to specify several transformations. When you specify multiple transformations, CFS runs the first transformation where the source XML matches the schema specified by ValidationSchema (or the first transformation where this parameter is not set).

[XmlTransformation] 
Sections=XmlTransform1,XmlTransform2 [XmlTransform1] ValidationSchema=schema1.xsd
TransformationStylesheet=transform1.xslt [XmlTransform2] // No validation schema, so processes all remaining XML files
TransformationStylesheet=transform2.xslt

After a transformation is applied (or no transformation is applied), the XML documents are parsed according to the settings specified in the [XMLParsing] section of the configuration file.