-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsch-combine.xsl
73 lines (55 loc) · 4.29 KB
/
sch-combine.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<xsl:output method="xml" indent="yes"/>
<xsl:variable name="cit" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/cit/1.0/cit.sch')"/>
<xsl:variable name="gex" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/gex/1.0/gex.sch')"/>
<xsl:variable name="mco" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mco/1.0/mco.sch')"/>
<xsl:variable name="mdb" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mdb/1.0/mdb.sch')"/>
<xsl:variable name="mex" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mex/1.0/mex.sch')"/>
<xsl:variable name="mmi" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mmi/1.0/mmi.sch')"/>
<xsl:variable name="mrc" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mrc/1.0/mrc.sch')"/>
<xsl:variable name="mrd" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mrd/1.0/mrd.sch')"/>
<xsl:variable name="mri" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mri/1.0/mri.sch')"/>
<xsl:variable name="mrs" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/mrs/1.0/mrs.sch')"/>
<xsl:variable name="srv" select="document('src/main/plugin/iso19115-3/schema/standards.iso.org/19115/-3/srv/1.0/srv.sch')"/>
<xsl:template match="/">
<sch:schema xmlns:sch="http://purl.oclc.org/dsdl/schematron"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<sch:title xmlns="http://www.w3.org/2001/XMLSchema"
xml:lang="en">Schematron validation for ISO 19115-1:2014 standard</sch:title>
<sch:title xmlns="http://www.w3.org/2001/XMLSchema"
xml:lang="fr">Règles de validation pour le standard ISO 19115-1:2014</sch:title>
<sch:ns prefix="gml" uri="http://www.opengis.net/gml/3.2"/>
<sch:ns prefix="srv" uri="http://standards.iso.org/iso/19115/-3/srv/2.0"/>
<sch:ns prefix="cit" uri="http://standards.iso.org/iso/19115/-3/cit/1.0"/>
<sch:ns prefix="gex" uri="http://standards.iso.org/iso/19115/-3/gex/1.0"/>
<sch:ns prefix="mco" uri="http://standards.iso.org/iso/19115/-3/mco/1.0"/>
<sch:ns prefix="mdb" uri="http://standards.iso.org/iso/19115/-3/mdb/1.0"/>
<sch:ns prefix="mex" uri="http://standards.iso.org/iso/19115/-3/mex/1.0"/>
<sch:ns prefix="mmi" uri="http://standards.iso.org/iso/19115/-3/mmi/1.0"/>
<sch:ns prefix="gmw" uri="http://standards.iso.org/iso/19115/-3/gmw/1.0"/>
<sch:ns prefix="mrc" uri="http://standards.iso.org/iso/19115/-3/mrc/1.0"/>
<sch:ns prefix="mrd" uri="http://standards.iso.org/iso/19115/-3/mrd/1.0"/>
<sch:ns prefix="mri" uri="http://standards.iso.org/iso/19115/-3/mri/1.0"/>
<sch:ns prefix="mrs" uri="http://standards.iso.org/iso/19115/-3/mrs/1.0"/>
<sch:ns prefix="mcc" uri="http://standards.iso.org/iso/19115/-3/mcc/1.0"/>
<sch:ns prefix="lan" uri="http://standards.iso.org/iso/19115/-3/lan/1.0"/>
<sch:ns prefix="gco" uri="http://standards.iso.org/iso/19115/-3/gco/1.0"/>
<sch:ns prefix="geonet" uri="http://www.fao.org/geonetwork"/>
<sch:ns prefix="xlink" uri="http://www.w3.org/1999/xlink"/>
<sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema"/>
<xsl:copy-of select="$cit//sch:pattern|$cit//sch:diagnostics"/>
<xsl:copy-of select="$gex//sch:pattern|$gex//sch:diagnostics"/>
<xsl:copy-of select="$mco//sch:pattern|$mco//sch:diagnostics"/>
<xsl:copy-of select="$mdb//sch:pattern|$mdb//sch:diagnostics"/>
<xsl:copy-of select="$mex//sch:pattern|$mex//sch:diagnostics"/>
<xsl:copy-of select="$mmi//sch:pattern|$mmi//sch:diagnostics"/>
<xsl:copy-of select="$mrc//sch:pattern|$mrc//sch:diagnostics"/>
<xsl:copy-of select="$mrd//sch:pattern|$mrd//sch:diagnostics"/>
<xsl:copy-of select="$mri//sch:pattern|$mri//sch:diagnostics"/>
<xsl:copy-of select="$mrs//sch:pattern|$mrs//sch:diagnostics"/>
<xsl:copy-of select="$srv//sch:pattern|$srv//sch:diagnostics"/>
</sch:schema>
</xsl:template>
</xsl:stylesheet>