-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repair addressing #105 (failure to honor 'choice' semantics), still w…
…anting testing; with a small testing application
- Loading branch information
1 parent
048b85a
commit 837a42b
Showing
28 changed files
with
5,445 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:xs="http://www.w3.org/2001/XMLSchema" | ||
|
||
xmlns:mx="http://csrc.nist.gov/ns/csd/metaschema-xslt" | ||
xmlns:math="http://www.w3.org/2005/xpath-functions/math" | ||
exclude-result-prefixes="xs math mx" | ||
xmlns="http://csrc.nist.gov/ns/oscal/metaschema/1.0" | ||
xpath-default-namespace="http://csrc.nist.gov/ns/oscal/metaschema/1.0" | ||
version="3.0"> | ||
|
||
<xsl:strip-space elements="*"/> | ||
|
||
<xsl:preserve-space elements="p h1 h2 h3 h4 h5 h6 pre li td | ||
a insert code em i b strong sub sup"/> | ||
|
||
<xsl:mode on-no-match="shallow-copy"/> | ||
|
||
<xsl:function name="mx:scrub-up" as="element()"> | ||
<xsl:param name="in" as="node()"/> | ||
<xsl:apply-templates select="$in"/> | ||
</xsl:function> | ||
|
||
</xsl:stylesheet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" | ||
xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0" | ||
xmlns:metaschema="http://csrc.nist.gov/ns/metaschema/1.0" | ||
type="metaschema:METASCHEMA-ALL-VALIDATORS" name="METASCHEMA-ALL-VALIDATORS"> | ||
|
||
<!-- &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& --> | ||
<!-- Ports --> | ||
|
||
<p:input port="METASCHEMA" primary="true"/> | ||
<p:input port="parameters" kind="parameter"/> | ||
|
||
<p:serialization port="INT_0_echo-input" indent="true" method="xml"/> | ||
<p:output port="INT_0_echo-input" primary="false"> | ||
<p:pipe port="result" step="echo-input"/> | ||
</p:output> | ||
|
||
<p:serialization port="INT_1_composed-metaschema" indent="true" method="xml"/> | ||
<p:output port="INT_1_composed-metaschema" primary="false"> | ||
<p:pipe port="result" step="composed"/> | ||
</p:output> | ||
|
||
<p:serialization port="OUT_json-schema-xml" indent="true" method="xml"/> | ||
<p:output port="OUT_json-schema-xml" primary="false"> | ||
<p:pipe port="result" step="make-json-schema-xml"/> | ||
</p:output> | ||
|
||
<p:serialization port="OUT_json-schema" indent="true" method="text" omit-xml-declaration="false"/> | ||
<p:output port="OUT_json-schema" primary="false"> | ||
<p:pipe port="result" step="serialize-json"/> | ||
</p:output> | ||
|
||
<p:serialization port="OUT_xml-schema" indent="true" method="xml"/> | ||
<p:output port="OUT_xml-schema" primary="false"> | ||
<p:pipe port="result" step="make-xsd"/> | ||
</p:output> | ||
|
||
<p:serialization port="OUT_inspector-xsl" indent="true" method="xml"/> | ||
<p:output port="OUT_inspector-xsl" primary="true"> | ||
<p:pipe port="result" step="make-inspector-xslt"/> | ||
</p:output> | ||
|
||
<!-- &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& --> | ||
<!-- Import (subpipeline) --> | ||
|
||
<p:import href="../compose/metaschema-compose.xpl"/> | ||
|
||
<!-- &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& &&& --> | ||
<!-- Pipeline --> | ||
|
||
<p:identity name="echo-input"/> | ||
|
||
<metaschema:metaschema-compose name="compose"/> | ||
|
||
<p:identity name="composed"/> | ||
|
||
<p:xslt name="make-xsd"> | ||
<p:input port="stylesheet"> | ||
<p:document href="XSD/make-metaschema-xsd.xsl"/> | ||
</p:input> | ||
</p:xslt> | ||
|
||
<p:sink/> | ||
|
||
<p:xslt name="make-json-schema-xml"> | ||
<p:input port="source"> | ||
<p:pipe port="result" step="composed"/> | ||
</p:input> | ||
<p:input port="stylesheet"> | ||
<p:document href="JSON-schema/make-json-schema-metamap.xsl"/> | ||
</p:input> | ||
</p:xslt> | ||
|
||
<!--<p:identity name="serialize-json"/>--> | ||
<p:xslt name="serialize-json"> | ||
<p:input port="stylesheet"> | ||
<p:document href="../common/xpath-json-to-json.xsl"/> | ||
</p:input> | ||
</p:xslt> | ||
|
||
<p:sink/> | ||
|
||
<p:xslt name="make-inspector-xslt"> | ||
<p:input port="source"> | ||
<p:pipe port="result" step="composed"/> | ||
</p:input> | ||
<p:input port="stylesheet"> | ||
<p:document href="InspectorXSLT/generator/generate-inspector-xslt.xsl"/> | ||
</p:input> | ||
</p:xslt> | ||
|
||
</p:declare-step> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.