0
|
1 |
<xsl:stylesheet version="2.0"
|
|
2 |
xmlns:ts="http://www.w3.org/XML/2004/xml-schema-test-suite/"
|
|
3 |
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
|
5 |
|
|
6 |
<xsl:template match="ts:testSetRef">
|
|
7 |
<xsl:apply-templates select="document(@xlink:href)"/>
|
|
8 |
</xsl:template>
|
|
9 |
|
|
10 |
<!-- We make all URI references absolute. -->
|
|
11 |
<xsl:template match="@xlink:href">
|
|
12 |
<xsl:attribute name="xlink:href" select="resolve-uri(., base-uri())"/>
|
|
13 |
</xsl:template>
|
|
14 |
|
|
15 |
<xsl:template match="@*|node()">
|
|
16 |
<xsl:copy>
|
|
17 |
<xsl:apply-templates select="@*|node()"/>
|
|
18 |
</xsl:copy>
|
|
19 |
</xsl:template>
|
|
20 |
|
|
21 |
</xsl:stylesheet>
|