Skip to content

Commit bc7b892

Browse files
aj-stein-nistDavid Waltermire
andcommitted
imported-from relations for #1023. (#1403)
Co-authored-by: David Waltermire <david.waltermire@nist.gov> Signed-off-by: Alexander Stein <alexander.stein@nist.gov>
1 parent b43142a commit bc7b892

File tree

8 files changed

+14
-9
lines changed

8 files changed

+14
-9
lines changed

README_validations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ For OSCAL XML, this schema syntax is [XML Schema Definition (XSD)](https://www.w
2626

2727
Each tool will have its own way to provide for validation. Bindings or configurations to link documents to schemas can be maintained either inside or outside the documents themselves; many tools offer several ways to do this.
2828

29-
Some tools support self-contained validation functionality without full-fledged application frameworks or development environments, with tools like [`xmllint`](http://xmlsoft.org/xmllint.html) offering command-line interfaces. Similarly, you can use the [`ajv-cli`](https://github.com/ajv-validator/ajv-cli) for JSON.
29+
Some tools support self-contained validation functionality without full-fledged application frameworks or development environments, with tools like [`xmllint`](https://linux.die.net/man/1/xmllint/) offering command-line interfaces. Similarly, you can use the [`ajv-cli`](https://github.com/ajv-validator/ajv-cli) for JSON.
3030

3131
## What does success look like?
3232

build/ci-cd/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ Not every script above is run with every pull request as part of the CI/CD syste
6565

6666
The bash scripts used in the CI/CD workflow can be run locally in the correct environment. In addition to a bash shell, to run these scripts the following must be installed:
6767

68-
- [xmlint](http://xmlsoft.org/xmllint.html)
69-
- Java 8.0 or greater
68+
- [xmlint](https://linux.die.net/man/1/xmllint/)
69+
- Java 11 or greater
7070
- [Apache Maven](https://maven.apache.org/) 3.6.1 or greater
7171
- [Node.js and Node Package Manager (NPM)](https://nodejs.org/en/) 10.15.3 or greater
7272
- 'Another Json Validator' Command Line Interface ([ajv-cli](https://github.com/jessedc/ajv-cli)) v3.0.0 or greater
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This code provides test coverage to validate the OSCAL artifacts as new document
55
### Pre-Requisites
66

77
1. [Python 2.7.10 or greater](https://www.python.org/)
8-
2. [xmllint](http://xmlsoft.org/xmllint.html)
9-
3. Java 8.0 or greater
8+
2. [xmllint](https://linux.die.net/man/1/xmllint/)
9+
3. Java 11 or greater
1010
4. [Saxon 10 HE](http://saxon.sourceforge.net/)
1111

1212
### Instructions

docs/content/contribute/model-engineering-meeting/meeting-2020-05-07.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ sidenav:
1919

2020
## Notes
2121

22-
- There is interest in having the model discussion. A Doodle pool will be sent to the oscal-dev@nist.gov mailing list to find a good day.
22+
- There is interest in having the model discussion. A Doodle pool will be sent to the oscal-dev@list.nist.gov mailing list to find a good day.

docs/content/contribute/model-engineering-meeting/meeting-2020-05-21.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ sidenav:
1919

2020
## Notes
2121

22-
- The Doodle pool results show that Fridays @ 10am EDT are the best time to have the model review meeting. The OSCAL team will send out a meeting invite for this time to the oscal-dev@nist.gov mailing list.
22+
- The Doodle pool results show that Fridays @ 10am EDT are the best time to have the model review meeting. The OSCAL team will send out a meeting invite for this time to the [oscal-dev@list.nist.gov](mailto:oscal-dev@list.nist.gov) mailing list.

src/metaschema/oscal_implementation-common_metaschema.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@
109109
<!-- ========================================================================================================== -->
110110
&allowed-values-component_component_link-rel;
111111
<enum value="uses-network">This component uses the network provided by the identified network component.</enum>
112+
<enum value="imported-from">The hyperlink identifies a URI pointing to the <code>component</code> in a <code>component-definition</code> that originally defined the <code>component</code>.</enum>
112113
</allowed-values>
113114

114115
<allowed-values target="responsible-role/@role-id" allow-other="yes">

src/metaschema/oscal_ssp_metaschema.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,10 @@
10201020
<field ref="remarks" in-xml="WITH_WRAPPER"/>
10211021
</model>
10221022
<constraint>
1023+
<allowed-values target="link/@rel" allow-other="yes">
1024+
<!-- TODO: More work needs to be done around link enforcement constraints and requires Metaschema work on recurse-depth-first() recursive index searching. -->
1025+
<enum value="imported-from">The hyperlink identifies a URI pointing to the <code>component</code> in a <code>component-definition</code> that originally described the <code>component</code> this component was based on.</enum>
1026+
</allowed-values>
10231027
<allowed-values target=".//responsible-role/@role-id" allow-other="yes">
10241028
&allowed-values-responsible-roles-operations;
10251029
&allowed-values-responsible-roles-component-production;

xml/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ XML Schema based on the [XML Schema Definition Language (XSD) 1.1](https://www.w
3636

3737
## Validating OSCAL XML Content
3838

39-
The OSCAL project uses [xmllint](http://xmlsoft.org/xmllint.html) to perform automated validation of all XML-based OSCAL [content](../content) provided in this repository. *xmllint* is an open source tool that can be [downloaded](http://xmlsoft.org/downloads.html), installed, and run on OSX, Linux, and Windows environments.
39+
The OSCAL project uses [xmllint](https://linux.die.net/man/1/xmllint/) to perform automated validation of all XML-based OSCAL [content](../content) provided in this repository. *xmllint* is an open source tool that can be downloaded, installed, and run on OSX, Linux, and Windows environments with your preferred package manager.
4040

4141
The following example uses **xmllint** to perform validation of an OSCAL catalog XML file.
4242

4343
```
4444
xmllint --noout --schema "oscal_catalog_schema.xsd" "catalog.xml"
4545
```
4646

47-
The [online documentation](http://xmlsoft.org/xmllint.html) for *xmllint* provides more information on the commandline arguments.
47+
The [online documentation](https://linux.die.net/man/1/xmllint/) for *xmllint* provides more information on the commandline arguments.
4848

4949
# OSCAL JSON to XML Converters
5050

0 commit comments

Comments
 (0)