forked from usnistgov/metaschema-xslt
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'merge-June2024' into merge-June2024
- Loading branch information
Showing
95 changed files
with
32,171 additions
and
2,804 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
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 |
---|---|---|
|
@@ -8,3 +8,7 @@ | |
|
||
# test outputs | ||
src/**/test_output/ | ||
|
||
# downloaded miscellaneous | ||
|
||
support/lib/* |
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
[submodule "support/xspec"] | ||
path = support/xspec | ||
url = https://github.com/xspec/xspec.git | ||
[submodule "support/metaschema"] | ||
path = support/metaschema | ||
url = https://github.com/usnistgov/metaschema.git | ||
branch = develop | ||
fetchRecurseSubmodules = false | ||
[submodule "support/xslt3-functions"] | ||
path = support/xslt3-functions | ||
url = https://github.com/usnistgov/xslt3-functions.git | ||
[submodule "support/schxslt"] | ||
path = support/schxslt | ||
url = https://github.com/schxslt/schxslt.git | ||
[submodule "metaschema"] | ||
url = https://github.com/usnistgov/metaschema.git |
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,27 @@ | ||
<?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" | ||
xmlns:fn="http://www.w3.org/2005/xpath-functions" | ||
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"> | ||
|
||
|
||
<!-- This XSLT relies on a global strip-space to strip whitespace-only nodes from | ||
everything except the Markdown elements --> | ||
<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 fn:string"/> | ||
|
||
<xsl:mode name="mx:stripping" on-no-match="shallow-copy"/> | ||
|
||
<xsl:function name="mx:scrub-up" as="element()"> | ||
<xsl:param name="in" as="node()"/> | ||
<xsl:apply-templates mode="mx:stripping" select="$in"/> | ||
</xsl:function> | ||
|
||
</xsl:stylesheet> |
File renamed without changes.
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.