1 | <?xml version="1.0" encoding="utf-8" standalone="no"?>
|
---|
2 | <!--
|
---|
3 | | LICENSE: This file is part of the DITA Open Toolkit project hosted on
|
---|
4 | | Sourceforge.net. See the accompanying license.txt file for
|
---|
5 | | applicable licenses.
|
---|
6 | *-->
|
---|
7 | <!--
|
---|
8 | | (C) Copyright IBM Corporation 2006. All Rights Reserved.
|
---|
9 | *-->
|
---|
10 | <xsl:stylesheet version="1.0"
|
---|
11 | xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
12 | xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
---|
13 |
|
---|
14 | <xsl:output
|
---|
15 | method="xml"
|
---|
16 | indent="yes"
|
---|
17 | omit-xml-declaration="no"
|
---|
18 | standalone="no"/>
|
---|
19 |
|
---|
20 | <xsl:template match="/">
|
---|
21 | <xsl:apply-templates select="*"/>
|
---|
22 | </xsl:template>
|
---|
23 |
|
---|
24 | <xsl:template match="xs:schema">
|
---|
25 | <xsl:copy>
|
---|
26 | <xsl:copy-of select="@*"/>
|
---|
27 | <xsl:apply-templates select="xs:complexType|xs:group[contains(@name,'.cnt')]|
|
---|
28 | xs:attributeGroup|xs:include|xs:redefine"/>
|
---|
29 | </xsl:copy>
|
---|
30 | </xsl:template>
|
---|
31 |
|
---|
32 | <xsl:template match="xs:include">
|
---|
33 | <xsl:copy>
|
---|
34 | <xsl:copy-of select="@*"/>
|
---|
35 | <xsl:apply-templates select="document(@schemaLocation)"/>
|
---|
36 | </xsl:copy>
|
---|
37 | </xsl:template>
|
---|
38 |
|
---|
39 | <xsl:template match="xs:redefine">
|
---|
40 | <xsl:copy>
|
---|
41 | <xsl:copy-of select="@*"/>
|
---|
42 | <xsl:apply-templates select="document(@schemaLocation)"/>
|
---|
43 | </xsl:copy>
|
---|
44 | </xsl:template>
|
---|
45 |
|
---|
46 | <xsl:template
|
---|
47 | match="xs:group[contains(@name,'.cnt')]|xs:complexType|xs:attributeGroup">
|
---|
48 | <xsl:copy-of select="."/>
|
---|
49 | </xsl:template>
|
---|
50 |
|
---|
51 | </xsl:stylesheet>
|
---|