Project

Profile

Help

How to connect?
Download (593 Bytes) Statistics
| Branch: | Revision:

he / tools / featureKeys / addCodes.xsl @ 2699858e

1
<?xml version="1.0" encoding="UTF-8"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
    exclude-result-prefixes="xs"
5
    version="3.0">
6
    
7
    <xsl:mode on-no-match="shallow-copy"/>
8
    <xsl:output indent="yes" suppress-indentation="p type typedesc"/>
9
    
10
    <xsl:template match="feature">
11
        <xsl:copy>
12
          <xsl:if test="not(featureCode)">
13
            <featureCode><xsl:number/></featureCode>
14
          </xsl:if>
15
          <xsl:apply-templates/>
16
        </xsl:copy>
17
    </xsl:template>
18
    
19
</xsl:stylesheet>
(8-8/8)