Skip to content

Commit

Permalink
Adding VS code instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
glenrobson committed Sep 29, 2023
1 parent f0fae8c commit f41ab4f
Show file tree
Hide file tree
Showing 8 changed files with 1,273 additions and 0 deletions.
1,233 changes: 1,233 additions & 0 deletions alto2annotations/vscode_xslt/0001_Z2-2-14(12-6)_001.xml

Large diffs are not rendered by default.

40 changes: 40 additions & 0 deletions alto2annotations/vscode_xslt/README.md
Original file line number Diff line number Diff line change
@@ -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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added alto2annotations/vscode_xslt/imgs/runtask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added alto2annotations/vscode_xslt/imgs/select_xml.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added alto2annotations/vscode_xslt/imgs/xslt-task.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f41ab4f

Please sign in to comment.