home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
WindowsServerTrial
/
server.iso
/
sources
/
install.wim
/
4
/
Windows
/
System32
/
WsmPty.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2006-09-18
|
2KB
|
50 lines
<?xml version="1.0" ?>
<!-- Copyright (c) Microsoft Corporation. All rights reserved. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="singleIndent" select="' '"/>
<xsl:template name="doIndent">
<xsl:for-each select="ancestor::*">
<xsl:value-of select="$singleIndent"/>
</xsl:for-each>
</xsl:template>
<xsl:template match="text()">
<xsl:copy/>
</xsl:template>
<xsl:template match="@*">
<xsl:copy/>
</xsl:template>
<xsl:template match="*[text()]">
<xsl:call-template name="doIndent"/>
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
<xsl:value-of select="' '"/>
</xsl:template>
<xsl:template match="*[*]">
<xsl:call-template name="doIndent"/>
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:value-of select="' '"/>
<xsl:apply-templates select="node()"/>
<xsl:call-template name="doIndent"/>
</xsl:copy>
<xsl:value-of select="' '"></xsl:value-of>
</xsl:template>
<xsl:template match="*">
<xsl:call-template name="doIndent"/>
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
<xsl:value-of select="' '"/>
</xsl:template>
</xsl:stylesheet>