Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 6474575c authored by Markus QUARITSCH's avatar Markus QUARITSCH
Browse files

include new schema files in common xsds, bugfixes

parent f6146440
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ namespace TUGraz.VectoCore.Models.Declaration ...@@ -77,7 +77,7 @@ namespace TUGraz.VectoCore.Models.Declaration
if (group == WeightingGroup.Unknown) { if (group == WeightingGroup.Unknown) {
return Constants.NOT_AVAILABLE; return Constants.NOT_AVAILABLE;
} }
return string.Join("-", Regex.Split(group.ToString().Replace(Prefix, ""), @"\D+")); return string.Join("-", Regex.Split(group.ToString().Replace(Prefix, ""), @"(\d+|\w+)").Where(x => !string.IsNullOrWhiteSpace(x)));
} }
} }
......
...@@ -52,7 +52,8 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -52,7 +52,8 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
public class XMLCustomerReport public class XMLCustomerReport
{ {
public const string CURRENT_SCHEMA_VERSION = "0.7"; public const string SCHEMA_VERSION_STRING = "0.7";
public const string CURRENT_SCHEMA_VERSION = "0.7.1";
protected readonly XElement VehiclePart; protected readonly XElement VehiclePart;
...@@ -245,7 +246,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -245,7 +246,7 @@ namespace TUGraz.VectoCore.OutputData.XML
vehicle.Add(InputDataIntegrity); vehicle.Add(InputDataIntegrity);
retVal.Add(new XProcessingInstruction("xml-stylesheet", "href=\"https://citnet.tech.ec.europa.eu/CITnet/svn/VECTO/trunk/Share/XML/CSS/VectoReports.css\"")); retVal.Add(new XProcessingInstruction("xml-stylesheet", "href=\"https://citnet.tech.ec.europa.eu/CITnet/svn/VECTO/trunk/Share/XML/CSS/VectoReports.css\""));
retVal.Add(new XElement(tns + XMLNames.VectoCustomerReport, retVal.Add(new XElement(tns + XMLNames.VectoCustomerReport,
new XAttribute("schemaVersion", CURRENT_SCHEMA_VERSION), new XAttribute("schemaVersion", SCHEMA_VERSION_STRING),
new XAttribute(XNamespace.Xmlns + "xsi", xsi.NamespaceName), new XAttribute(XNamespace.Xmlns + "xsi", xsi.NamespaceName),
new XAttribute("xmlns", tns), new XAttribute("xmlns", tns),
new XAttribute(XNamespace.Xmlns + "di", di), new XAttribute(XNamespace.Xmlns + "di", di),
......
...@@ -53,6 +53,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -53,6 +53,7 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
public class XMLManufacturerReport public class XMLManufacturerReport
{ {
public const string SCHEMA_VERSION_STRING = "0.7";
public const string CURRENT_SCHEMA_VERSION = "0.7.1"; public const string CURRENT_SCHEMA_VERSION = "0.7.1";
protected XElement VehiclePart; protected XElement VehiclePart;
...@@ -409,7 +410,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -409,7 +410,7 @@ namespace TUGraz.VectoCore.OutputData.XML
vehicle.Add(InputDataIntegrity); vehicle.Add(InputDataIntegrity);
retVal.Add(new XProcessingInstruction("xml-stylesheet", "href=\"https://citnet.tech.ec.europa.eu/CITnet/svn/VECTO/trunk/Share/XML/CSS/VectoReports.css\"")); retVal.Add(new XProcessingInstruction("xml-stylesheet", "href=\"https://citnet.tech.ec.europa.eu/CITnet/svn/VECTO/trunk/Share/XML/CSS/VectoReports.css\""));
retVal.Add(new XElement(tns + XMLNames.VectoManufacturerReport, retVal.Add(new XElement(tns + XMLNames.VectoManufacturerReport,
new XAttribute("schemaVersion", CURRENT_SCHEMA_VERSION), new XAttribute("schemaVersion", SCHEMA_VERSION_STRING),
new XAttribute(XNamespace.Xmlns + "xsi", xsi.NamespaceName), new XAttribute(XNamespace.Xmlns + "xsi", xsi.NamespaceName),
new XAttribute("xmlns", tns), new XAttribute("xmlns", tns),
new XAttribute(XNamespace.Xmlns + "di", di), new XAttribute(XNamespace.Xmlns + "di", di),
......
...@@ -44,6 +44,8 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -44,6 +44,8 @@ namespace TUGraz.VectoCore.OutputData.XML
{ {
public class XMLMonitoringReport public class XMLMonitoringReport
{ {
public const string SCHEMA_VERSION_STRING = "0.7";
public const string CURRENT_SCHEMA_VERSION = "0.7.1"; public const string CURRENT_SCHEMA_VERSION = "0.7.1";
private XMLManufacturerReport _manufacturerReport; private XMLManufacturerReport _manufacturerReport;
...@@ -97,7 +99,7 @@ namespace TUGraz.VectoCore.OutputData.XML ...@@ -97,7 +99,7 @@ namespace TUGraz.VectoCore.OutputData.XML
retVal.Add( retVal.Add(
new XElement( new XElement(
tns + "VectoMonitoring", tns + "VectoMonitoring",
new XAttribute("schemaVersion", CURRENT_SCHEMA_VERSION), new XAttribute("schemaVersion", SCHEMA_VERSION_STRING),
new XAttribute(XNamespace.Xmlns + "xsi", xsi.NamespaceName), new XAttribute(XNamespace.Xmlns + "xsi", xsi.NamespaceName),
new XAttribute("xmlns", tns), new XAttribute("xmlns", tns),
new XAttribute(XNamespace.Xmlns + "di", di), new XAttribute(XNamespace.Xmlns + "di", di),
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) --> <!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="urn:tugraz:ivt:VectoAPI:MonitoringOutput" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:ParameterDocumentation ParameterDocumentation.xsd"> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:tugraz:ivt:VectoAPI:MonitoringOutput" xmlns:ns2="urn:tugraz:ivt:VectoAPI:MonitoringOutput:v0.7" targetNamespace="urn:tugraz:ivt:VectoAPI:MonitoringOutput" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:ParameterDocumentation ParameterDocumentation.xsd">
<!-- <!--
This is a convienience file that imports the schema for all supported versions of customer information file and all supported declaration definitions This is a convienience file that imports the schema for all supported versions of customer information file and all supported declaration definitions
--> -->
<xs:import namespace="urn:tugraz:ivt:VectoAPI:MonitoringOutput:v0.7" schemaLocation="VectoMonitoring.0.7.xsd"/> <xs:import namespace="urn:tugraz:ivt:VectoAPI:MonitoringOutput:v0.7" schemaLocation="VectoMonitoring.0.7.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:MonitoringOutput:v0.7.1" schemaLocation="VectoMonitoring.0.7.1.xsd"/>
</xs:schema> </xs:schema>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) --> <!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="urn:tugraz:ivt:VectoAPI:CustomerOutput" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:ParameterDocumentation ParameterDocumentation.xsd"> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:tugraz:ivt:VectoAPI:CustomerOutput" xmlns:ns2="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.5" xmlns:ns3="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.7" targetNamespace="urn:tugraz:ivt:VectoAPI:CustomerOutput" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:ParameterDocumentation ParameterDocumentation.xsd">
<!-- <!--
This is a convienience file that imports the schema for all supported versions of customer information file and all supported declaration definitions This is a convienience file that imports the schema for all supported versions of customer information file and all supported declaration definitions
...@@ -8,4 +8,5 @@ ...@@ -8,4 +8,5 @@
--> -->
<xs:import namespace="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.5" schemaLocation="VectoOutputCustomer.0.5.xsd"/> <xs:import namespace="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.5" schemaLocation="VectoOutputCustomer.0.5.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.7" schemaLocation="VectoOutputCustomer.0.7.xsd"/> <xs:import namespace="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.7" schemaLocation="VectoOutputCustomer.0.7.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:CustomerOutput:v0.7.1" schemaLocation="VectoOutputCustomer.0.7.1.xsd"/>
</xs:schema> </xs:schema>
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) --> <!-- edited with XMLSpy v2016 rel. 2 sp1 (x64) (http://www.altova.com) by Helmut Eichlseder (TU Graz/Inst. f. VKM und THD) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:ParameterDocumentation ParameterDocumentation.xsd"> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="urn:tugraz:ivt:VectoAPI:DeclarationOutput" xmlns:ns2="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.5" xmlns:ns3="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.6" xmlns:ns4="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.7" targetNamespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput" elementFormDefault="qualified" attributeFormDefault="unqualified" xsi:schemaLocation="urn:tugraz:ivt:VectoAPI:ParameterDocumentation ParameterDocumentation.xsd">
<!-- <!--
This is a convienience file that imports the schema for all supported versions of manufacturer records file and all supported declaration definitions This is a convienience file that imports the schema for all supported versions of manufacturer records file and all supported declaration definitions
...@@ -9,4 +9,5 @@ ...@@ -9,4 +9,5 @@
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.5" schemaLocation="VectoOutputManufacturer.0.5.xsd"/> <xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.5" schemaLocation="VectoOutputManufacturer.0.5.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.6" schemaLocation="VectoOutputManufacturer.0.6.xsd"/> <xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.6" schemaLocation="VectoOutputManufacturer.0.6.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.7" schemaLocation="VectoOutputManufacturer.0.7.xsd"/> <xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.7" schemaLocation="VectoOutputManufacturer.0.7.xsd"/>
<xs:import namespace="urn:tugraz:ivt:VectoAPI:DeclarationOutput:v0.7.1" schemaLocation="VectoOutputManufacturer.0.7.1.xsd"/>
</xs:schema> </xs:schema>
...@@ -88,14 +88,17 @@ ...@@ -88,14 +88,17 @@
<Folder FolderName="Reports"> <Folder FolderName="Reports">
<File FilePath="VectoCore\Resources\XSD\VectoMonitoring.0.7.1.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoMonitoring.0.7.1.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoMonitoring.0.7.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoMonitoring.0.7.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoMonitoring.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.4.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.4.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.5.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.5.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.7.1.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.7.1.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.7.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.0.7.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputCustomer.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.5.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.5.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.6.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.6.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.7.1.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.7.1.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.7.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.0.7.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VectoOutputManufacturer.xsd" HomeFolder="Yes"/>
<File FilePath="VectoCore\Resources\XSD\VTPReport.0.1.xsd" HomeFolder="Yes"/> <File FilePath="VectoCore\Resources\XSD\VTPReport.0.1.xsd" HomeFolder="Yes"/>
</Folder> </Folder>
</Folder> </Folder>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment