You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by eg...@apache.org on 2004/03/26 11:56:46 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/xslt/bxeng config-xml.xsl
egli 2004/03/26 02:56:46
Modified: src/webapp/lenya/xslt/bxeng config-xml.xsl
Log:
If a script is passed as an argument, add it to the files section.
Revision Changes Path
1.7 +9 -1 cocoon-lenya/src/webapp/lenya/xslt/bxeng/config-xml.xsl
Index: config-xml.xsl
===================================================================
RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/bxeng/config-xml.xsl,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- config-xml.xsl 13 Mar 2004 13:09:51 -0000 1.6
+++ config-xml.xsl 26 Mar 2004 10:56:46 -0000 1.7
@@ -26,6 +26,7 @@
<xsl:param name="BX_xslfile"/>
<xsl:param name="BX_validationfile"/>
<xsl:param name="css"/>
+<xsl:param name="script"/>
<xsl:param name="BX_exitdestination"/>
<xsl:param name="contextmenufile"/>
@@ -68,6 +69,13 @@
<xsl:template match="files/css/file">
<file><xsl:value-of select="$css"/></file>
</xsl:template>
+
+ <xsl:template match="files/scripts/file[position()=last()]">
+ <file><xsl:value-of select="."/></file>
+ <xsl:if test="$script">
+ <file><xsl:value-of select="$script"/></file>
+ </xsl:if>
+ </xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org