Skip to content

Commit 31074c8

Browse files
Set default namespace so prefixes are not necessary
1 parent 4ee0c3e commit 31074c8

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

bob.xsl

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<xsl:stylesheet
33
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
44
xmlns:xs="http://www.w3.org/2001/XMLSchema"
5-
xmlns:tei="http://www.tei-c.org/ns/1.0"
5+
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
66
exclude-result-prefixes="xs"
77
version="2.0">
88

99
<xsl:import href="base.xsl"/>
1010

11-
<xsl:template match="tei:dimensions">
12-
<xsl:for-each select="tei:*">
11+
<xsl:template match="dimensions">
12+
<xsl:for-each select="*">
1313
<xsl:apply-templates select="."/>
1414
<xsl:if test="position() ne last()">
1515
<xsl:text>x</xsl:text>
@@ -18,7 +18,7 @@
1818
<xsl:value-of select="@unit"/>
1919
</xsl:template>
2020

21-
<xsl:template match="tei:hi">
21+
<xsl:template match="hi">
2222
<mark>
2323
<xsl:apply-templates/>
2424
</mark>

rita.xsl

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
<xsl:stylesheet
33
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
44
xmlns:xs="http://www.w3.org/2001/XMLSchema"
5-
xmlns:tei="http://www.tei-c.org/ns/1.0"
5+
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
66
exclude-result-prefixes="xs"
77
version="2.0">
88

99
<xsl:import href="base.xsl"/>
1010

11-
<xsl:template match="tei:quote">
11+
<xsl:template match="quote">
1212
"<xsl:apply-templates/>"
1313
</xsl:template>
1414

15-
<xsl:template match="tei:hi[@rend='italic']">
15+
<xsl:template match="hi[@rend='italic']">
1616
<i>
1717
<xsl:apply-templates/>
1818
</i>
1919
</xsl:template>
2020

21-
<xsl:template match="tei:p">
21+
<xsl:template match="p">
2222
<p>
2323
<xsl:apply-templates/>
2424
</p>

sue.xsl

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22
<xsl:stylesheet
33
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
44
xmlns:xs="http://www.w3.org/2001/XMLSchema"
5-
xmlns:tei="http://www.tei-c.org/ns/1.0"
5+
xpath-default-namespace="http://www.tei-c.org/ns/1.0"
66
exclude-result-prefixes="xs"
77
version="2.0">
88

99
<xsl:import href="base.xsl"/>
1010

11-
<xsl:template match="tei:physDesc">
11+
<xsl:template match="physDesc">
1212
<h3>Physical Description</h3>
1313
<xsl:apply-templates/>
1414
</xsl:template>
1515

16-
<xsl:template match="tei:textLang">
16+
<xsl:template match="textLang">
1717
<p>
1818
<b>Languages: </b>
1919
<xsl:apply-templates/>
2020
</p>
2121
</xsl:template>
2222

23-
<xsl:template match="tei:supplied">
23+
<xsl:template match="supplied">
2424
<xsl:text>⟨</xsl:text>
2525
<xsl:apply-templates/>
2626
<xsl:text>⟩</xsl:text>

0 commit comments

Comments
 (0)