-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON to XML converter issue #1020
Comments
@wendellpiez Please provide a PR that updates the XML and JSON readmes as needed. |
Apologies @vikas-agarwal76 this fell behind. For now, try (with adjustments for quote marks)
But I am looking at the source; tomorrow I will test and update the readme. Detail: the
the
Saxon command line syntax is given in detail at https://www.saxonica.com/documentation10/index.html#!using-xsl/commandline |
Thanks @wendellpiez The above command works. But when I run the SSP json to xml convertor - Warning and so on. |
@vikas-agarwal76 @david-waltermire-nist that appears to be an honest bug in the converter. We will have to look at this separately. We are currently developing alternate pathways supporting JSON-XML conversion so there may (also) be an interim solution to offer while we do so (what do you think DW)? |
@wendellpiez Based on our chat on gitter, here is the python code fragment that I am using to do the JSON to XML conversion programmatically (instead of from command line) -
but I get "None" as output and there are no errors reported. |
As I understand it, we have not only interface enhancements (see usnistgov/metaschema#174) but a possible bug in the SSP (related to role-id), inasmuch as no runtime warning messages from template clashes should ever be emitted. To close this issue we should ensure that the SSP converter in particular works with all valid inputs we have tried and that they come through cleanly and correctly without useless warnings. |
…time interfaces of generated JSON and XML converters
* Addressing #174 cf also usnistgov/OSCAL#1020 - adjusting runtime interfaces of generated JSON and XML converters * Adding support for passing in JSON literal (to be tested); added template priority setting to intervene over template clashes #174 * Updating tests * Correcting omission resulting in redundant path expressions (same step expressed multiply); tests; refinement of path matching to distinguish between flag matches signaled by 'attribute::' axis, vs field or assembly matches via 'child::' (or implicit) axis. With tests over current OSCAL SSP model. * Touchups to unit tests * Updated readme on OSCAL metaschema examples
* Addressing #174 cf also usnistgov/OSCAL#1020 - adjusting runtime interfaces of generated JSON and XML converters * Adding support for passing in JSON literal (to be tested); added template priority setting to intervene over template clashes #174 * Updating tests * Correcting omission resulting in redundant path expressions (same step expressed multiply); tests; refinement of path matching to distinguish between flag matches signaled by 'attribute::' axis, vs field or assembly matches via 'child::' (or implicit) axis. With tests over current OSCAL SSP model. * Touchups to unit tests * Updated readme on OSCAL metaschema examples
The command mentioned on https://github.com/usnistgov/OSCAL/tree/v1.0.0/xml for converting from JSON to XML format -
java -jar "saxon9he.jar" -xsl:"oscal_catalog_json-to-xml-converter.xsl" -o:"oscal-catalog.xml" -it json-file="oscal-catalog.json"
is not working. It seems the xsl files in https://github.com/usnistgov/OSCAL/tree/v1.0.0/xml/convert where updated in recent releases and the above command needs to be updated.
Kindly provide the updated command.
The text was updated successfully, but these errors were encountered: