Home » railML newsgroups » railml.misc » Namespace not recognised for v3.1 (v2.4 works!)
Namespace not recognised for v3.1 (v2.4 works!) [message #2425] Fri, 24 April 2020 15:24 Go to next message
Tom James is currently offline  Tom James
Messages: 1
Registered: April 2020
Junior Member
Hi. I have been working with WS Atkins on similar rail XSD projects to RailML, in the UK (namely SDEF & Rail IFC). I have been testing my own software products that convert XSD files to a 'full stack" solution (see: https://github.com/LightosLimited/RailML).

I tried converting the latest format (3.1) but I receive an error that no "namespaces" are recognised from the 8 number XSD files. This has prevented my from using the latest version. As a sense check, I have successfully converted the 2.4 version (also in the GitHub link above).

I've looked at the XSD code but am unable to see the reason for my code not detecting any namespaces, I am still relatively new the XSDs. I am using "CodeComplieUnits" to automate conversion into C# software code.

Are you able to advise what needs to be altered so that the namespaces can be detected?

Regards,
Tom James
Lightos, Woldingham/United Kingdom
Re: Namespace not recognised for v3.1 (v2.4 works!) [message #2426 is a reply to message #2425] Mon, 27 April 2020 22:45 Go to previous message
Thomas Nygreen is currently offline  Thomas Nygreen
Messages: 27
Registered: March 2008
Junior Member
Hi,

I need some more information to be able to advise you.

From what you write, I assume that your software uses the .NET class CodeCompileUnit. I also assume that the contents of the GitHub repository are the outputs of the successful railML 2.4 conversion and failed railML 3.1 conversion. However, I cannot find any debugging info, logs or error messages from the failed conversion.

Without a more detailed error message (like a stack trace) and without any knowledge of your code, it is very hard to guess what changes you need to make.

Keep in mind that railML 2.4 and railML 3.1 have different namespaces. See https://wiki2.railml.org/index.php?title=Dev:versions#railML .C2.AE_namespace_declarations

Best regards,
Thomas Nygreen


Thomas Nygreen - Common Schema Coordinator
railML.org (Registry of Associations: VR 5750)
Altplauen 19h; 01187 Dresden; Germany www.railML.org
Previous Topic: Suggested refined definitions and extension to organizationalUnits
Next Topic: [railML3] Handling changes between minor versions
Goto Forum:
  


Current Time: Wed Aug 12 14:59:14 CEST 2020