File: remove_base.xsl

package info (click to toggle)
mobyle 1.5.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 8,272 kB
  • ctags: 2,745
  • sloc: python: 22,649; sh: 57; makefile: 31; xml: 6; ansic: 5
file content (30 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:template match="/">
		<xsl:apply-templates />
	</xsl:template>

	<!--
		general templates copy everything you find in the input, unless
		otherwise specified
	-->
	<xsl:template match="*">
		<!-- copy element -->
		<xsl:copy>
			<!-- copy its attributes -->
			<xsl:apply-templates select="@*" />
			<!-- process its sub-elements -->
			<xsl:apply-templates />
		</xsl:copy>
	</xsl:template>

	<xsl:template match="@*">
    <xsl:copy/>
  </xsl:template>	

	<!-- Remove xml:base attributes introduced by XInclude -->
	<xsl:template match="@xml:*" />

	
</xsl:stylesheet>