Product(s): | InRoads, MX, GEOPAK |
Version(s): | 10.00.00.120+ |
Area: | Reports |
Question:
XML/XSL reports from SS4 do not function in OpenRoads Designer. Users get the following error when opening an SS4 report in ORD:
System.Xml.Xsl.XslLoadException: Variable 'deg' has not been declared An error occurred at C:\ProgramData\Bentley\Civil\ReportBrowser\8.11.9\en\format.xsl(753,29).
at System.Xml.Xsl.XslCompiledTransform.LoadInternal(Object stylesheet, XsltSettings settings, XmlResolver stylesheetResolver)
at Bentley.CifNET.GeometryModel.Tools.Reports.XmlReports.ReportBrowser.Transform()
Answer:
A change was made beginning in the first OpenRoads Designer release to all XML/XSL reports. This change occurred because all of the JavaScript code had to be re-written to work with the newer versions of the Microsoft XML code. The schemas are largely unaffected in the XML, but the JavaScript used to format will have to be modified as shown below:
1.) Call to the "inr" xml namespace need to be changed to "cif". For example, change
from: xmlns:inr=http://mycompany.com/mynamespace
to xmlns:cif="cif"
2.) Change all references to "inr" namespace to "cif". For example, change
from: inr:stationFormat
to: cif:stationFormat
3.) Add xslShowHelp parameter: <xsl:param name="xslShowHelp" select="cif:xslShowHelp"/>
4.) Custom Format variables are no longer needed and must be removed. For example, the following variables must be removed:
5.) "OrdinateFormat" parameters have replaced NorthingFormat, EastingFormat, and ElevationFormat. For example, change
from: select="inr:northingFormat(number(End/@northing), $xslNorthingPrecision)"/>
to: select="cif:ordinateFormat(number(End/@northing))">
6.) Remove the format.xsl include statement: <xsl:include href="../../format.xsl" />
**Note: All reports typically delivered by default with OpenRoads Designer have already been upgraded with these changes. These modifications will only have to be made to customized XSL files that will brought forward from SS4 to ORD.