tests/auto/xmlpatternsschemats/TESTSUITE/unifyCatalog.xsl
author Eckhart Koeppen <eckhart.koppen@nokia.com>
Wed, 21 Apr 2010 12:15:23 +0300
branchRCL_3
changeset 13 cc75c76972ee
parent 0 1918ee327afb
permissions -rw-r--r--
a69086a7359b3de9db0823ce58d9aab8b5c369be

<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>