The SVRL is taken as input for the transformation into an XML report. This report is provided to the end user product that integrates the validation. The XML structure of the report is the agreed API between validation engine and post-processing system.
The output is grouped by constraint in the report.
<errorCategory>
<constraintID>
c1
</constraintID>
<title>
Cabin Bag Max. Weight 8kg
</title>
<shortUserDesc>
Cabin bag should not have more
than 8kg weight.
</shortUserDesc>
<longUserDesc/>
<specs>
<spec>
<name>
Conditons Aeto, Version 1.0
</name>
<nameAcronym>
C-Aeto<
/nameAcronym>
<errorLevel>ERROR</errorLevel>
</spec>
</specs>
<errors>
<error>
<messages>
<messageMain>
Assertion: The weight of cabin
luggage is 8kg or less.
Error Information: The cabin
luggage of Jane Grant exceeded
the maximum weight allowance
by 3kg. Pack lighter!
</messageMain>
<messageAssertion>
The weight of cabin luggage is
8kg or less.
</messageAssertion>
<messageDiagnosticsAll>
The cabin luggage of Jane Grant
exceeded the maximum weight
allowance by 3kg. Pack lighter!
</messageDiagnosticsAll>
</messages>
<locations>
<location
locationType="resolvableXPATH">
/passenger[1]/cabin-bag[1]/weight[1]
</location>
<location
locationType="humanXPATH">
/passenger/cabin-bag/weight
</location>
</locations>
</error>
</errors>
</errorCategory>