diff --git a/alto2annotations/vscode_xslt/0001_Z2-2-14(12-6)_001.xml b/alto2annotations/vscode_xslt/0001_Z2-2-14(12-6)_001.xml new file mode 100644 index 0000000..c80f378 --- /dev/null +++ b/alto2annotations/vscode_xslt/0001_Z2-2-14(12-6)_001.xml @@ -0,0 +1,1233 @@ + + + + pixel + + Z2-2-14(12-6)_001.jpg + + + 2023-09-29T11:28:26.036+02:00 + + READ COOP + Transkribus + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/alto2annotations/vscode_xslt/README.md b/alto2annotations/vscode_xslt/README.md new file mode 100644 index 0000000..cb73ee5 --- /dev/null +++ b/alto2annotations/vscode_xslt/README.md @@ -0,0 +1,40 @@ +# Running XSLTs with VS Code + +Download the XSLT plugin: + +https://marketplace.visualstudio.com/items?itemName=deltaxml.xslt-xpath + +Install Java: +https://code.visualstudio.com/docs/languages/java + +Download Saxon: +https://www.saxonica.com/download/java.xml +Saxon-HE + +Setup saxon in settings. Go to VS Code settings and add path to saxon: + +![Image of setting saxon](imgs/Set_saxon_location.png) + +Now run the XSLT task to convert the XML to JSON annotations. This takes a number of steps: + +## Step 1: open the command dialog at the top of the screen and select run task + +![Run task](imgs/runtask.png) + +## Step 2: Select the XSLT task + +![Run xslt task](imgs/xslt-task.png) + +## Step 3: Select the Saxon transformer + +![Select Saxon transformer](imgs/saxon_transformer.png) + +## Step 4: Select the annotationListNoArt.xsl + +![Select XSL](imgs/select_xslt.png) + +## Step 5: Select the ALTO xml + +![Select XML](imgs/select_xml.png) + +Results will be in xsl-out/result1.xml This will need to be renamed to .json. diff --git a/alto2annotations/vscode_xslt/imgs/Set_saxon_location.png b/alto2annotations/vscode_xslt/imgs/Set_saxon_location.png new file mode 100644 index 0000000..d1432fa Binary files /dev/null and b/alto2annotations/vscode_xslt/imgs/Set_saxon_location.png differ diff --git a/alto2annotations/vscode_xslt/imgs/runtask.png b/alto2annotations/vscode_xslt/imgs/runtask.png new file mode 100644 index 0000000..7cd3f21 Binary files /dev/null and b/alto2annotations/vscode_xslt/imgs/runtask.png differ diff --git a/alto2annotations/vscode_xslt/imgs/saxon_transformer.png b/alto2annotations/vscode_xslt/imgs/saxon_transformer.png new file mode 100644 index 0000000..4219487 Binary files /dev/null and b/alto2annotations/vscode_xslt/imgs/saxon_transformer.png differ diff --git a/alto2annotations/vscode_xslt/imgs/select_xml.png b/alto2annotations/vscode_xslt/imgs/select_xml.png new file mode 100644 index 0000000..2e8cd43 Binary files /dev/null and b/alto2annotations/vscode_xslt/imgs/select_xml.png differ diff --git a/alto2annotations/vscode_xslt/imgs/select_xslt.png b/alto2annotations/vscode_xslt/imgs/select_xslt.png new file mode 100644 index 0000000..3546159 Binary files /dev/null and b/alto2annotations/vscode_xslt/imgs/select_xslt.png differ diff --git a/alto2annotations/vscode_xslt/imgs/xslt-task.png b/alto2annotations/vscode_xslt/imgs/xslt-task.png new file mode 100644 index 0000000..5a1abbf Binary files /dev/null and b/alto2annotations/vscode_xslt/imgs/xslt-task.png differ