Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Latest commit

 

History

History

generate_cpp_objects_from_registry

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

XSL Transformation from lwm2m object registry to WakaamaNode cpp objects

The java program in this directory executes the XSL transformation in res/transform/transform.xsl for all xml input files in res/lwm2m_object_registry which have been successfully validated against the res/schema/LWM2M.xsd schema. Output files are written to an out directory.

The program tries to update the input files before transforming them if the "-u" command line parameter is given.

Arguments

  • -dv,--disable-validation Disable the validation of downloaded files
  • -o,--output output file path (default is 'out')
  • -r,--res resource file path, with schema and transform subdirectory (default is 'res')
  • -u,--update update OMA registry files (default is false)
  • -url,--update-url OMA registry url (default is http://www.openmobilealliance.org/wp/DDF.xml)

Input files

All res/lwm2m_object_registry files are downloaded from [[http://www.openmobilealliance.org/wp/DDF.xml]] and [[http://www.openmobilealliance.org/wp/OMNA/LwM2M/Common.xml]]. The schema validation file is res/schema/LWM2M.xsd.

Output files

Output files are written to the directory called "out" in the working directory.

Build/Run

Build with gradle build. Run with gradle run.