-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove-localities-from-aff.xsl
37 lines (29 loc) · 1.14 KB
/
remove-localities-from-aff.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="xs"
version="3.0">
<xsl:output method="xml"
encoding="UTF-8"/>
<xsl:template match="*|@*|text()|comment()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="country[ancestor::aff]">
<xsl:apply-templates select="*|text()"/>
</xsl:template>
<xsl:template match="state[ancestor::aff]">
<xsl:apply-templates select="*|text()"/>
</xsl:template>
<xsl:template match="addr-line[ancestor::aff]">
<xsl:apply-templates select="*|text()"/>
</xsl:template>
<xsl:template match="city[ancestor::aff]">
<xsl:apply-templates select="*|text()"/>
</xsl:template>
<xsl:template match="postal-code[ancestor::aff]">
<xsl:apply-templates select="*|text()"/>
</xsl:template>
</xsl:stylesheet>