XML Structure PNG Added

master
Pavan Mandava 6 years ago
parent 263b46bcc9
commit 0c983ead5c

@ -1,21 +1,21 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<book code="abc_book"> <book code="cap_book">
<bookInfo> <bookInfo>
<title>Crime and Punishment</title> <title>Crime and Punishment</title>
<lang>en</lang> <lang>en</lang>
<isTranslation>true</isTranslation> <isTranslation>true</isTranslation>
<totalChapters>2</totalChapters> <totalChapters>2</totalChapters>
<source>https://en.wikisource.org/wiki/Crime_and_Punishment</source> <source>https://en.wikisource.org/wiki/</source>
<description> <!--Optional--> <description> <!--Optional-->
Crime and Punishment (Russian: Преступление и наказание) is a novel written by Russian author Fyodor Dostoevsky. Crime and Punishment (Russian: Преступление и наказание) is a novel
First published in a journal named The Russian Messenger, it appeared in twelve monthly installments in 1866, and was later published as a novel. written by Russian author Fyodor Dostoevsky.
</description> </description>
<isbn>n.a.</isbn> <!--Optional--> <isbn>n.a.</isbn> <!--Optional-->
<author>Fyodor Dostoevsky</author> <author>Fyodor Dostoevsky</author>
<author translator="true">Constance Garnett</author> <author translator="true">Constance Garnett</author>
</bookInfo> </bookInfo>
<content> <content>
<chapter num="1" name="Erstes Kapitel"> <chapter num="1" name="Chapter 1">
<sentence num="1">First Sentence</sentence> <sentence num="1">First Sentence</sentence>
<sentence num="2">Second Sentence</sentence> <sentence num="2">Second Sentence</sentence>
<sentence num="3">Third Sentence</sentence> <sentence num="3">Third Sentence</sentence>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="book1" select="document('../xml_files/dost_cap_enru_en.xml')/*" /> <xsl:variable name="book1" select="document('../xml_files/dost_cap_ende_en.xml')/*" />
<xsl:variable name="book2" select="document('../xml_files/dost_cap_enru_ru.xml')/*" /> <xsl:variable name="book2" select="document('../xml_files/dost_cap_ende_de.xml')/*" />
<xsl:template match="/"> <xsl:template match="/">
<html> <html>

Loading…
Cancel
Save