equal
deleted
inserted
replaced
|
1 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
|
2 <xsl:output method="xml" indent="yes"/> |
|
3 <!-- strip out build-related stuff and just leave the model + added attributes --> |
|
4 |
|
5 <xsl:param name="everything" select="1"/> |
|
6 |
|
7 <xsl:template match="@*"> |
|
8 <xsl:if test="$everything"> |
|
9 <xsl:copy-of select="."/> |
|
10 </xsl:if> |
|
11 </xsl:template> |
|
12 |
|
13 |
|
14 <xsl:template match="unit|@id|@name|@href|@before|layer/@levels|package/@levels | layer/@span | package/@span | |
|
15 package/@version | package/@tech-domain | @level | |
|
16 component/@deprecated | component/@introduced| component/@target | component/@purpose | component/@class | component/@filter | component/@origin-model "> |
|
17 <xsl:copy-of select="."/> |
|
18 </xsl:template> |
|
19 |
|
20 |
|
21 <xsl:template match="meta"/> <!-- should make conditional based on param --> |
|
22 |
|
23 <xsl:template match="layer|package|collection|component"> |
|
24 <xsl:copy> |
|
25 <xsl:apply-templates select="@*"/> |
|
26 <xsl:apply-templates select="*"/> |
|
27 </xsl:copy> |
|
28 </xsl:template> |
|
29 |
|
30 <xsl:template match="SystemDefinition"> |
|
31 <xsl:copy><xsl:copy-of select="@schema|@id-namespace"/> |
|
32 <xsl:apply-templates select="systemModel | layer | package | collection | component"/> |
|
33 </xsl:copy> |
|
34 </xsl:template> |
|
35 |
|
36 <xsl:template match="systemModel"> |
|
37 <xsl:copy><xsl:copy-of select="@name"/> |
|
38 <xsl:apply-templates select="layer|meta"/> |
|
39 </xsl:copy> |
|
40 </xsl:template> |
|
41 |
|
42 |
|
43 </xsl:stylesheet> |