aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xml-docs/style/stylesheets/directory2project.xsl
blob: 4995828df96d0ca68ff68e84fa1f11940b421428 (plain)
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
31
32
33
34
<?xml version="1.0"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0">

  <xsl:param name="base"/>

  <xsl:template match="/">
    <xsl:apply-templates/>
  </xsl:template>

  <xsl:template match="directory">
    <project>
      <xsl:apply-templates/>
    </project>
  </xsl:template>

  <xsl:template match="entry">

    <xsl:if test="@directory!='true'">
      <resource source="{@href}" target="{$base}{@href}"/>
    </xsl:if>
<!-- don't copy subdir to avoid copying proprietary CVS files
    <xsl:if test="@directory='true'">
      <process source="{@href}" producer="directory">
        <processor name="xslt">
          <parameter name="stylesheet" value="sbk:/style/stylesheets/directory2project.xsl"/>
          <parameter name="base" value="{$base}{@href}"/>
        </processor>
      </process>
    </xsl:if>
-->    
  </xsl:template>

</xsl:stylesheet>