-
Notifications
You must be signed in to change notification settings - Fork 1
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
Showing
112 changed files
with
2,420,243 additions
and
139 deletions.
There are no files selected for viewing
145 changes: 6 additions & 139 deletions
145
data/xml/CompareTwoXMLfiles.ipynb → resources/CompareTwoXMLfiles.ipynb
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,94 @@ | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"id": "863ea5b6-8483-4b9b-920d-910269110afe", | ||
"metadata": {}, | ||
"source": [ | ||
"# Applying style sheets to the input XML data (Nestle1904LFT)" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "0bf16065-8841-46b3-baba-0a8a9715c3cb", | ||
"metadata": {}, | ||
"source": [ | ||
"## Table of content <a class=\"anchor\" id=\"TOC\"></a>\n", | ||
"* <a href=\"#bullet1\">1 - The standard included CSS</a>\n", | ||
"* <a href=\"#bullet2\">2 - Adding 'rules' CSS</a>\n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "09db7be2-3fff-42d6-bdce-548343582b2a", | ||
"metadata": {}, | ||
"source": [ | ||
"# 1 - The standard included CSS <a class=\"anchor\" id=\"bullet1\"></a>\n", | ||
"##### [Back to TOC](#TOC)\n", | ||
"\n", | ||
"The source XML files contain links to two style sheet files:\n", | ||
"\n", | ||
"```\n", | ||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", | ||
"<?xml-stylesheet href=\"treedown.css\"?>\n", | ||
"<xml-stylesheet href=\"boxwood.css\"?>\n", | ||
"```\n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "20442ce4-0388-4a94-b9db-c59ccc6e2128", | ||
"metadata": {}, | ||
"source": [ | ||
"When opening the XML file in a browser, results like the following are shown:\n", | ||
"\n", | ||
"<img src=\"images/mat_1_1_standardcss.jpg\">" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"id": "30244a39-4130-423f-a403-f44fe4a85aa9", | ||
"metadata": {}, | ||
"source": [ | ||
"# 2 - Adding 'rules' CSS <a class=\"anchor\" id=\"bullet2\"></a>\n", | ||
"##### [Back to TOC](#TOC)\n", | ||
"\n", | ||
"It is also possible to include additional style sheets. For example adding 'rules.css':\n", | ||
" \n", | ||
"```\n", | ||
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n", | ||
"<?xml-stylesheet href=\"treedown.css\"?>\n", | ||
"<xml-stylesheet href=\"boxwood.css\"?>\n", | ||
"<xml-stylesheet href=\"rules.css\"?>\n", | ||
"```\n", | ||
"\n", | ||
"When opening the XML file in a browser, results like the following are shown:\n", | ||
"\n", | ||
"<img src=\"images/mat_1_1_add_rules_css.jpg\">\n", | ||
"\n", | ||
"Note: other CSS files are also available allowing additional formating." | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"kernelspec": { | ||
"display_name": "Python 3 (ipykernel)", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.9.12" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 5 | ||
} |
Oops, something went wrong.