-
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.
work on shawi_trial and add declaration in Urfa-011, -012 and -027
- Loading branch information
1 parent
cf8f983
commit 0b6cd49
Showing
9 changed files
with
3,907 additions
and
23 deletions.
There are no files selected for viewing
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
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
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
1,549 changes: 1,549 additions & 0 deletions
1,549
010_manannot/backup/Urfa-011_Cemetry-Harran-2010__2024_07_05_12_00_18.xml
Large diffs are not rendered by default.
Oops, something went wrong.
1,313 changes: 1,313 additions & 0 deletions
1,313
010_manannot/backup/Urfa-012_Lentils-Harran-2010__2024_07_05_12_00_34.xml
Large diffs are not rendered by default.
Oops, something went wrong.
910 changes: 910 additions & 0 deletions
910
010_manannot/backup/Urfa-027_Cultivation-Harran-2010__2024_07_05_12_01_27.xml
Large diffs are not rendered by default.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
082_scripts_xsl/backup/tei_2_html__shawi_trial__2024_07_04_13_41_04.xsl
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,58 @@ | ||
<xsl:stylesheet xml:space="preserve" | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | ||
xmlns:tei="http://www.tei-c.org/ns/1.0" | ||
version="2.0" | ||
exclude-result-prefixes="xsl tei"> | ||
<xsl:output method="html" indent="no" encoding="UTF-8"/> | ||
<xsl:strip-space elements="tei:body tei:TEI tei:row tei:cell tei:teiHeader tei:text tei:u tei:hi tei:ref tei:p tei:fileDesc tei:titleStmt tei:publicationStmt tei:editionStmt tei:revisionDesc tei:sourceDesc tei:div"/> | ||
|
||
<!-- Variable to hold the title --> | ||
<xsl:variable name="title" select="//tei:titleStmt/tei:title"/> | ||
|
||
<!-- Variable to count all 'ana' attributes in the document --> | ||
<xsl:variable name="anaCount" select="count(//tei:*[@ana])"/> | ||
<xsl:variable name="wCount" select="count(//tei:w)"/> | ||
|
||
<!-- Template to apply at the root level --> | ||
<xsl:template match="/"> | ||
<html> | ||
<head> | ||
<title> | ||
<xsl:value-of select="$title"/> | ||
</title> | ||
<!-- Embed CSS styles directly in the head section --> | ||
<style type="text/css"> | ||
p { | ||
color: blue; /* Sets the text color to blue */ | ||
background-color: green; /* Sets the background color to green */ | ||
padding: 10px; /* Adds space around the text */ | ||
margin: 10px 0; /* Adds space above and below the paragraph */ | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<h1><xsl:value-of select="$title"/></h1> | ||
<p>Total 'ana' attributes found: <xsl:value-of select="$anaCount"/></p> | ||
<p>Total 'w' elements found: <xsl:value-of select="$wCount"/></p> | ||
<!-- Processing the body of the TEI document --> | ||
<xsl:apply-templates select="tei:text/tei:body"/> | ||
</body> | ||
</html> | ||
</xsl:template> | ||
|
||
<!-- Identity template for basic copying of content --> | ||
<xsl:template match="node() | @*"> | ||
<xsl:copy> | ||
<xsl:apply-templates select="node() | @*"/> | ||
</xsl:copy> | ||
</xsl:template> | ||
|
||
<!-- Specific template for paragraphs --> | ||
<xsl:template match="tei:p"> | ||
<p> | ||
<xsl:apply-templates/> | ||
</p> | ||
</xsl:template> | ||
|
||
</xsl:stylesheet> |
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
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