"source": "# Convert the generated TEI to bibliographic formats\n",
"source": [
"# Convert the generated TEI to bibliographic formats\n"
],
"id": "2cdf8ba1eefa38e0"
},
{
...
...
@@ -88,7 +90,9 @@
"source": [
"## Download the Saxon jar\n",
"\n",
"As the xslt uses v2.0 features, and there are no native-python xslt-2.0 processors, we need to use the Saxon processor (I haven't tried https://pypi.org/project/saxonpy).\n"
"As the xslt uses v2.0 features, and there are no native-python xslt-2.0 processors, we need to use the Saxon processor. Possible alternatives (untested):\n",
" - https://pypi.org/project/saxonpy\n",
" - https://github.com/cts2/pyjxslt\n"
],
"id": "781d0e0e7a9dd346"
},
...
...
@@ -119,7 +123,9 @@
{
"metadata": {},
"cell_type": "markdown",
"source": "## Run the transformation to biblStruct & MODS",
"source": [
"## Run the transformation to biblStruct & MODS"
],
"id": "1bbb36ac0f4fd1b5"
},
{
...
...
@@ -231,8 +237,7 @@
"Running xml2ris to convert mods/10.1111_1467-6478.00057.mods.xml to ris/10.1111_1467-6478.00057.ris...\n",
"Running xml2ris to convert mods/10.1111_1467-6478.00080.mods.xml to ris/10.1111_1467-6478.00080.ris...\n",
"Running xml2ris to convert mods/10.1515_zfrs-1980-0103.mods.xml to ris/10.1515_zfrs-1980-0103.ris...\n",
"Running xml2ris to convert mods/10.1515_zfrs-1980-0104.mods.xml to ris/10.1515_zfrs-1980-0104.ris...\n",
"\n"
"Running xml2ris to convert mods/10.1515_zfrs-1980-0104.mods.xml to ris/10.1515_zfrs-1980-0104.ris...\n"
]
}
],
...
...
@@ -309,7 +314,7 @@
{
"metadata": {},
"cell_type": "markdown",
"source": "",
"source": [],
"id": "8ce07a1a294b5408"
},
{
...
...
@@ -350,8 +355,7 @@
"Running xml2bib to convert mods/10.1111_1467-6478.00057.mods.xml to bib/10.1111_1467-6478.00057.bib...\n",
"Running xml2bib to convert mods/10.1111_1467-6478.00080.mods.xml to bib/10.1111_1467-6478.00080.bib...\n",
"Running xml2bib to convert mods/10.1515_zfrs-1980-0103.mods.xml to bib/10.1515_zfrs-1980-0103.bib...\n",
"Running xml2bib to convert mods/10.1515_zfrs-1980-0104.mods.xml to bib/10.1515_zfrs-1980-0104.bib...\n",
"\n"
"Running xml2bib to convert mods/10.1515_zfrs-1980-0104.mods.xml to bib/10.1515_zfrs-1980-0104.bib...\n"
]
}
],
...
...
@@ -383,8 +387,7 @@
"Running citeproc to convert bib/10.1111_1467-6478.00057.bib to csljson/10.1111_1467-6478.00057.csl.json...\n",
"Running citeproc to convert bib/10.1111_1467-6478.00080.bib to csljson/10.1111_1467-6478.00080.csl.json...\n",
"Running citeproc to convert bib/10.1515_zfrs-1980-0103.bib to csljson/10.1515_zfrs-1980-0103.csl.json...\n",
"Running citeproc to convert bib/10.1515_zfrs-1980-0104.bib to csljson/10.1515_zfrs-1980-0104.csl.json...\n",
"\n"
"Running citeproc to convert bib/10.1515_zfrs-1980-0104.bib to csljson/10.1515_zfrs-1980-0104.csl.json...\n"
]
}
],
...
...
@@ -395,7 +398,7 @@
"cell_type": "code",
"outputs": [],
"execution_count": null,
"source": "",
"source": [],
"id": "77ff73f83a1db70e"
}
],
...
...
%% Cell type:markdown id:2cdf8ba1eefa38e0 tags:
# Convert the generated TEI to bibliographic formats
%% Cell type:markdown id:db65c4065691c578 tags:
## Download required XSLT documents
we use XSLT provided by https://github.com/OpenArabicPE/convert_tei-to-bibliographic-data
Downloaded convert_tei-to-biblstruct_functions.xsl to lib/xslt
Downloaded convert_tei-to-biblstruct_bibl.xsl to lib/xslt
Downloaded date-functions.xsl to lib/xslt
Downloaded convert_tei-to-mods_functions.xsl to lib/xslt
Downloaded convert_tei-to-mods_bibl.xsl to lib/xslt
Downloaded convert_tei-to-zotero-rdf_bibl.xsl to lib/xslt
Downloaded MODS3-7_Bibframe2-0_XSLT2-0_20230505.xsl to lib/xslt/
Downloaded languageCrosswalk.xml to lib/xslt/conf
%% Cell type:markdown id:781d0e0e7a9dd346 tags:
## Download the Saxon jar
As the xslt uses v2.0 features, and there are no native-python xslt-2.0 processors, we need to use the Saxon processor (I haven't tried https://pypi.org/project/saxonpy).
As the xslt uses v2.0 features, and there are no native-python xslt-2.0 processors, we need to use the Saxon processor. Possible alternatives (untested):