-
Notifications
You must be signed in to change notification settings - Fork 193
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
Improvements to converter readme docs #1027
Improvements to converter readme docs #1027
Conversation
… conversion pathways
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor feedback around typos and Saxon version specifications.
@@ -71,7 +71,24 @@ The following example uses **Saxon HE** to convert an OSCAL catalog XML file to | |||
``` | |||
java -jar "saxon9he.jar" -xsl:"oscal_catalog_xml-to-json-converter.xsl" -s:"oscal-catalog.xml" -o:"oscal-catalog.json" json-indent=yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps change to "saxon10he.jar"
or something analogous as Saxon 9.x is now deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wendellpiez Can you add an issue for upgrading to Saxon 10? Can you reference in that issue that these docs need to be updated?
|
||
The Saxon JAR file is named ```saxon9he.jar```. The catalog converter is specified as ```-xsl:"oscal_catalog_xml-to-json-converter.xsl"```, the source catalog XML file is specified as ```-s:"oscal-catalog.xml"```, and the destination catalog JSON file is specified as ```-o:"oscal-catalog.json"```. Paths\names of these files need to be provided based on the location of the files on your computer. | ||
* The Saxon JAR file is named ```saxon9he.jar```. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto here.
xml/README.md
Outdated
The Saxon JAR file is named ```saxon9he.jar```. The catalog converter is specified as ```-xsl:"oscal_catalog_json-to-xml-converter.xsl"```, the source catalog JSON file is specified as ```json-file="oscal-catalog.json"```, and the destination catalog XML file is specified as ```-o:"oscal-catalog.xml"```. Paths\names of these files need to be provided based on the location of the files on your computer. | ||
`-it` indicates the initial template (XSLT entry point) should be 'make-xml'. | ||
|
||
Paths\names given to other settingsneed to be provided based on the location of the files on your computer: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paths\names given to other settingsneed to be provided based on the location of the files on your computer: | |
Paths\names given to other settings need to be provided based on the location of the files on your computer: |
xml/README.md
Outdated
|
||
Paths\names given to other settingsneed to be provided based on the location of the files on your computer: | ||
|
||
* The Saxon JAR file is named ```saxon9he.jar```. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto re Saxon9 here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per discussion with @wendellpiez, I will surface Saxon 9.x versus Saxon 10.x compatibilities elsewhere. The typos and stylistic changes I recommended are now obsolete and have been fixed. I am happy with the improved docs!
@@ -71,7 +71,24 @@ The following example uses **Saxon HE** to convert an OSCAL catalog XML file to | |||
``` | |||
java -jar "saxon9he.jar" -xsl:"oscal_catalog_xml-to-json-converter.xsl" -s:"oscal-catalog.xml" -o:"oscal-catalog.json" json-indent=yes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wendellpiez Can you add an issue for upgrading to Saxon 10? Can you reference in that issue that these docs need to be updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
* Improvements to readme docs for both XML-to-JSON and JSON-to-XML XSLT conversion pathways
* Improvements to readme docs for both XML-to-JSON and JSON-to-XML XSLT conversion pathways
This corrects docs errors reported in #1020.
Potential errors in SSP conversion remain to be determined but will be addressed in usnistgov/metaschema#174.
Committer Notes
There are several ways to run the converters in debug as well as regular configuration. In addition to correcting a manifest error (as reported), the docs now describe these configurations.
All Submissions:
Changes to Core Features:
n/a