source: other-projects/nightly-tasks/diffcol/trunk/xsl/shrink-index.xsl@ 28933

Last change on this file since 28933 was 21711, checked in by oranfry, 14 years ago

bringing across the diffcol project

File size: 603 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3
4 <!-- specify xhtml output -->
5 <xsl:output method="xml" encoding="utf-8" indent="yes" omit-xml-declaration="yes"/>
6
7 <xsl:template match="/">
8 <index>
9 <xsl:for-each select="/index/test">
10 <test>
11 <xsl:for-each select="@*">
12 <xsl:variable name="attribute-name" select="name()"/>
13 <xsl:attribute name="{$attribute-name}"><xsl:value-of select="."/></xsl:attribute>
14 </xsl:for-each>
15 </test>
16 </xsl:for-each>
17 </index>
18 </xsl:template>
19
20</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.