<commit_before>
Prerequisities

1. xsltproc tool
  $ yum install libxslt

2. ISO schematron XSLT v1 files
  $ wget http://www.schematron.com/tmp/iso-schematron-xslt1.zip
  $ unzip iso-schematron-xslt1.zip


Creating a validation XSL file

1. download a .sch file, e.g. for oval definitions:
  $ wget http://oval.mitre.org/language/version${OVAL_VERSION}/ovaldefinition/schematron/oval-definitions-schematron.sch

2. use xsltproc to generate target .xsl, which will be used to validate documents
  $ xsltproc iso_schematron_skeleton_for_xslt1.xsl oval-definitions-schematron.sch >oval/${OVAL_VERSION}/oval-definitions-schematron.xsl


Validating an document without oscap tool

  $ xsltproc oval/${OVAL_VERSION}/oval-definitions-schematron.xsl  path/to/your/file.xml




--------------------
#! /bin/bash

version="$1"

wget -N http://www.schematron.com/tmp/iso-schematron-xslt1.zip
unzip -o iso-schematron-xslt1.zip

wget -N "http://oval.mitre.org/language/version$version/ovaldefinition/schematron/oval-definitions-schematron.zip"
unzip -o "oval-definitions-schematron.zip"<commit_msg>doc: Make sure our workarounds don't get lost.<commit_after>
Prerequisities

1. xsltproc tool
  $ yum install libxslt

2. ISO schematron XSLT v1 files
  $ wget http://www.schematron.com/tmp/iso-schematron-xslt1.zip
  $ unzip iso-schematron-xslt1.zip


Creating a validation XSL file

1. download a .sch file, e.g. for oval definitions:
  $ wget http://oval.mitre.org/language/version${OVAL_VERSION}/ovaldefinition/schematron/oval-definitions-schematron.sch

2. use xsltproc to generate target .xsl, which will be used to validate documents
  $ xsltproc iso_schematron_skeleton_for_xslt1.xsl oval-definitions-schematron.sch >oval/${OVAL_VERSION}/oval-definitions-schematron.xsl

3. Make sure you do not override workarounds we carry on. (You can use git-merge).


Validating an document without oscap tool

  $ xsltproc oval/${OVAL_VERSION}/oval-definitions-schematron.xsl  path/to/your/file.xml




--------------------
#! /bin/bash

version="$1"

wget -N http://www.schematron.com/tmp/iso-schematron-xslt1.zip
unzip -o iso-schematron-xslt1.zip

wget -N "http://oval.mitre.org/language/version$version/ovaldefinition/schematron/oval-definitions-schematron.zip"
unzip -o "oval-definitions-schematron.zip"
{'fraction_non_alphanumeric': 0.12625600698995196, 'fraction_numerical': 0.010048055919615552, 'mean_word_length': 4.010940919037199, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3600040', 'n_tokens_mistral': 866, 'n_tokens_neox': 822, 'n_words': 171}