summaryrefslogtreecommitdiff
path: root/tests/auto/xmlpatternsschemats/TESTSUITE/unifyCatalog.xsl
blob: 325f6268fa21e4942eb96bec90aa28c2b86f607e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<xsl:stylesheet version="2.0"
                xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/"
                xmlns:xlink="http://www.w3.org/1999/xlink"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

    <xsl:template match="ts:testSetRef">
        <xsl:apply-templates select="document(@xlink:href)"/>
    </xsl:template>

    <!-- We make all URI references absolute. -->
    <xsl:template match="@xlink:href">
        <xsl:attribute name="xlink:href" select="resolve-uri(., base-uri())"/>
    </xsl:template>

    <xsl:template match="@*|node()">
        <xsl:copy>
            <xsl:apply-templates select="@*|node()"/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>