aboutsummaryrefslogtreecommitdiffstats
path: root/docs/xml-docs/style/stylesheets/directory2project.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'docs/xml-docs/style/stylesheets/directory2project.xsl')
-rw-r--r--docs/xml-docs/style/stylesheets/directory2project.xsl34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/xml-docs/style/stylesheets/directory2project.xsl b/docs/xml-docs/style/stylesheets/directory2project.xsl
new file mode 100644
index 000000000..4995828df
--- /dev/null
+++ b/docs/xml-docs/style/stylesheets/directory2project.xsl
@@ -0,0 +1,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> \ No newline at end of file