Skip to content

Commit 266a07f

Browse files
committed
minor changes to xsl transformation: title; ...
1 parent 102813c commit 266a07f

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

freud_api_crawler/fixtures/make_tei.xslt

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -75,40 +75,38 @@
7575
<note type="footnote" prev="true"><xsl:apply-templates/></note>
7676
</xsl:template>
7777
<xsl:template match="tei:p[@class='title']">
78-
<p>
79-
<title type="main"><xsl:apply-templates/></title>
78+
<p rendition="{@class}">
79+
<xsl:apply-templates/>
8080
</p>
8181
</xsl:template>
8282
<xsl:template match="tei:p[@class='h1']">
83-
<p>
84-
<title rendition="#level_1"><xsl:apply-templates/></title>
83+
<p rendition="{@class}">
84+
<title><xsl:apply-templates/></title>
8585
</p>
8686
</xsl:template>
8787
<xsl:template match="tei:p[@class='h2']">
88-
<p>
89-
<title rendition="#level_2"><xsl:apply-templates/></title>
88+
<p rendition="{@class}">
89+
<xsl:apply-templates/>
9090
</p>
9191
</xsl:template>
9292
<xsl:template match="tei:p[@class='h3']">
93-
<p>
94-
<title rendition="#level_3"><xsl:apply-templates/></title>
93+
<p rendition="{@class}">
94+
<xsl:apply-templates/>
9595
</p>
9696
</xsl:template>
9797
<xsl:template match="tei:p[@class='h4']">
98-
<p>
99-
<title rendition="#level_4"><xsl:apply-templates/></title>
98+
<p rendition="{@class}">
99+
<xsl:apply-templates/>
100100
</p>
101101
</xsl:template>
102102
<xsl:template match="tei:p[@class='h5']">
103-
<p>
104-
<title rendition="#level_5"><xsl:apply-templates/></title>
103+
<p rendition="{@class}">
104+
<xsl:apply-templates/>
105105
</p>
106106
</xsl:template>
107107
<xsl:template match="tei:p[@class='comment_editor']">
108-
<p>
109-
<note type="comment_editor">
110-
<xsl:apply-templates/>
111-
</note>
108+
<p rendition="{@class}">
109+
<xsl:apply-templates/>
112110
</p>
113111
</xsl:template>
114112
<!-- <xsl:template match="tei:p[@class='ff']">

freud_api_crawler/templates/tei.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
<msDesc>
105105
{% if man.repository %}<msIdentifier>
106106
<repository>{{ man.repository.name }}</repository>
107-
<idno type="url">{{ man.repository.url }}</idno>
107+
<idno type="api">{{ man.repository.url }}</idno>
108108
</msIdentifier>{% endif %}
109109
<msContents>
110110
<msItem>
@@ -130,7 +130,7 @@
130130
{% if man.publication.herausgeber %}{% for pub in man.publication.herausgeber %}<editor ref="#{{ pub.id }}">{{ pub.name }}</editor>{% endfor %}{% endif %}
131131
{% if man.publication.editor %}{% for pub in man.publication.editor %}<editor ref="#{{ pub.id }}">{{ pub.name }}</editor>{% endfor %}{% endif %}
132132
{% if man.publication.advisor %}{% for pub in man.publication.advisor %}<editor ref="#{{ pub.id }}">{{ pub.name }}</editor>{% endfor %}{% endif %}
133-
{% if man.publication.url %}<idno type="url">{{ man.publication.url }}</idno>{% endif %}
133+
{% if man.publication.url %}<idno type="api">{{ man.publication.url }}</idno>{% endif %}
134134
{% if man.publication.type %}<name>{{ man.publication.type }}</name>{% endif %}
135135
</bibl>{% endif %}
136136
</bibl>

0 commit comments

Comments
 (0)