Skip to content

Commit

Permalink
chore(dependencies): bump Saxon-HE 10.9
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Apr 10, 2024
1 parent 0f00800 commit fc03b7a
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions docgen/xml/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,27 @@ THIS_PATH="$(realpath "$(dirname "$0")")"
SCHEMA_PATH="$(realpath "$THIS_PATH/../../schema")"
DOCS_PATH="$THIS_PATH/docs"

SAXON_JAR='Saxon-HE-9.9.1-8.jar'
SAXON_VERSION='10.9'

rm -f -R docs
# --


rm -rf "$DOCS_PATH"


SAXON_JAR="Saxon-HE-${SAXON_VERSION}.jar"
if [ ! -f "$THIS_PATH/$SAXON_JAR" ]; then
curl --output-dir "$THIS_PATH" -O \
"https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/9.9.1-8/$SAXON_JAR"
"https://repo1.maven.org/maven2/net/sf/saxon/Saxon-HE/$SAXON_VERSION/$SAXON_JAR"
fi


generate () {
version="$1"
title="CycloneDX v$version XML Reference"
echo "Generating: $title"

## docs: https://www.saxonica.com/documentation10/index.html#!using-xsl/commandline
java -jar "$THIS_PATH/$SAXON_JAR" \
-s:"$SCHEMA_PATH/bom-${version}.xsd" \
-xsl:"$THIS_PATH/xs3p.xsl" \
Expand Down

0 comments on commit fc03b7a

Please sign in to comment.