Last active
August 29, 2015 14:16
-
-
Save vlad-ghita/ba21ba053d986dfc540c to your computer and use it in GitHub Desktop.
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
<catechism> | |
<parts> | |
<part> | |
<title>Introducere</title> | |
<chapters> | |
<chapter> | |
<title>meta</title> | |
<visible>no</visible> | |
<subchapters> | |
<subchapter> | |
<title>meta</title> | |
<visible>no</visible> | |
<items> | |
<item-title>3___Cine este cre?tin adev?rat?</item-title><item-copy> | |
<ol> | |
<li>C? este numai un singur Dumnezeu;</li> | |
<li>C? in Dumnezeu sunt trei persoane: Tat?l, Fiul ?i Sfantul Duh;</li> | |
<li>C? Dumnezeu este drept judec?tor, care r?spl?te?te binele ?i pedepse?te r?ul;</li> | |
<li>C? a doua persoan? dumnezeeasc? s-a f?cut om, ca prin moartea sa pe cruce s? r?scumpere pe oameni ?i in veci s?-i mantueasc?;</li> | |
<li>C? sufletul omului este nemuritor;</li> | |
<li>C? harul lui Dumnezeu este trebuincios pentru mantuirea omului.</li> | |
</ol> | |
</item-copy><item-title>6___Cate p?r?i are Catehismul ?i cari sunt ele?</item-title><item-copy> | |
<p>Catehismul are patru p?r?i ?i anume: I. Despre simbolul credin?ei. II. Despre sacramente sau sfintele taine. III. Despre poruncile lui Dumnezeu ?i ale Bisericii. IV. Despre rug?ciune.</p> | |
</item-copy><item-title>6___Cate p?r?i are Catehismul ?i cari sunt ele?</item-title><item-copy> | |
<p>Catehismul are patru p?r?i ?i anume: I. Despre simbolul credin?ei. II. Despre sacramente sau sfintele taine. III. Despre poruncile lui Dumnezeu ?i ale Bisericii. IV. Despre rug?ciune.</p> | |
</item-copy><item-title>6___Cate p?r?i are Catehismul ?i cari sunt ele?</item-title><item-copy> | |
<p>Catehismul are patru p?r?i ?i anume: I. Despre simbolul credin?ei. II. Despre sacramente sau sfintele taine. III. Despre poruncile lui Dumnezeu ?i ale Bisericii. IV. Despre rug?ciune.</p> | |
</item-copy></items> | |
</subchapter> | |
<subchapter> | |
<title>meta</title> | |
<visible>no</visible> | |
<items> | |
<item-title>1___E?ti cre?tin?</item-title><item-copy> | |
<p>Da, sunt cre?tin prin harul lui Dumnezeu.</p> | |
</item-copy><item-title>3___Cine este cre?tin adev?rat?</item-title><item-copy> | |
<ol> | |
<li>C? este numai un singur Dumnezeu;</li> | |
<li>C? in Dumnezeu sunt trei persoane: Tat?l, Fiul ?i Sfantul Duh;</li> | |
<li>C? Dumnezeu este drept judec?tor, care r?spl?te?te binele ?i pedepse?te r?ul;</li> | |
<li>C? a doua persoan? dumnezeeasc? s-a f?cut om, ca prin moartea sa pe cruce s? r?scumpere pe oameni ?i in veci s?-i mantueasc?;</li> | |
<li>C? sufletul omului este nemuritor;</li> | |
<li>C? harul lui Dumnezeu este trebuincios pentru mantuirea omului.</li> | |
</ol> | |
</item-copy></items> | |
</subchapter> | |
</subchapters> | |
</chapter> | |
</chapters> | |
</part> | |
</parts> | |
</catechism> |
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
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> | |
<xsl:output method="xml" indent="yes" /> | |
<xsl:template match="/"> | |
<xsl:apply-templates select="*" mode="catechism"/> | |
</xsl:template> | |
<xsl:template match="*" mode="catechism"> | |
<xsl:copy> | |
<xsl:apply-templates select="* | text()" mode="catechism"/> | |
</xsl:copy> | |
</xsl:template> | |
<xsl:template match="items" mode="catechism"> | |
<items> | |
<xsl:copy-of select="item-title"/> | |
<xsl:copy-of select="item-copy"/> | |
</items> | |
</xsl:template> | |
</xsl:stylesheet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment