Skip to content

Commit

Permalink
Create documentation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Mazztok45 authored Feb 4, 2024
1 parent a69e7b6 commit 5df44ad
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/xslt/documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
We propose in this document to expose how to use the XLST can be used to process the XML file generated with src/zbmath_rest2oai/getAsXml.py.

Environment request:

_ JDK version 8

_ Maven 3

Install the package :

https://github.com/physikerwelt/xstlprocJ

Point the folder xstlprocJ, copy the files xslt-article-transformation.xslt and plain.xml then execute the shell command:

```shell
:~/xstlprocJ$ bash xsltprocJ xslt-article-transformation.xslt plain.xml
Warning: at xsl:stylesheet on line 2 column 255 of xslt-article-transformation.xslt:
Running an XSLT 1 stylesheet with an XSLT 2 processor

```

This command outputs the following XML document

```xml
<?xml version="1.0" encoding="UTF-8"?><oai_zb_preview xmlns:oai_zb_preview="https://zbmath.org/OAI/2.0/oai_zb_preview/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:zbmath="https://zbmath.org/zbmath/elements/1.0/"><author>Maynard, James</author><author_ids><author_id>maynard.james</author_id></author_ids><classifications><classification>11N05</classification><classification>11N36</classification></classifications></oai_zb_preview>maz@BE000078:~/xstlprocJ$
```

0 comments on commit 5df44ad

Please sign in to comment.