-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0fae8c
commit f41ab4f
Showing
8 changed files
with
1,273 additions
and
0 deletions.
There are no files selected for viewing
1,233 changes: 1,233 additions & 0 deletions
1,233
alto2annotations/vscode_xslt/0001_Z2-2-14(12-6)_001.xml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.