Skip to content

Create an action to transform .xsd files into .rst files for online documentation #266

@vanderpol

Description

@vanderpol

Here is the powershell script that I run manually, which could be translated to any language and run via runner on Linux etc.. Just need to loop through the .xsd files and use a saxon parser to to the translation

$files = Get-ChildItem "C:\Users\Jack\Documents\GitHub\OVAL\oval-schemas" -Filter *.xsd
foreach ($f in $files){
$outfile = $f.Basename + ".rst"
java -jar C:\Users\Jack\Downloads\SaxonHE10-8J\saxon-he-10.8.jar -s:$f.FullName -xsl:C:\Users\Jack\Documents\GitHub\OVAL\tools\oval_xsd2rst.xsl -o:C:\Users\Jack\Documents\GitHub\OVAL\guidelines\oval-schema-documentation\$outfile
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions