cziegeler 02/01/31 05:46:00
Modified: . build.xml
src/documentation/stylesheets announcement.xsl
Log:
Fixed announcement creation
Revision Changes Path
1.155 +12 -9 xml-cocoon2/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-cocoon2/build.xml,v
retrieving revision 1.154
retrieving revision 1.155
diff -u -r1.154 -r1.155
--- build.xml 31 Jan 2002 13:29:48 -0000 1.154
+++ build.xml 31 Jan 2002 13:46:00 -0000 1.155
@@ -213,9 +213,6 @@
<property name="site" value="../xml-site/targets/${name}"/>
- <property name="build.announce" value="${build.dir}/Announcement.xml"/>
- <property name="announce2txt"
value="./documentation/stylesheets/announcement2txt.xsl"/>
-
<!--
The location of tools.jar, relative to the JAVA_HOME home.
-->
@@ -1108,12 +1105,18 @@
<!-- =================================================================== -->
<!-- Create the announcements -->
<!-- =================================================================== -->
- <target name="announcement" depends="prepare" description="* Creates the
announcement for new releases">
-
- <copy file="announcement.xml" tofile="${build.announce}" filtering="on"/>
-
- <style basedir="${build.dir}" destdir="./" style="${announce2txt}"
- includes="Announcement.xml" extension=".txt"/>
+ <target name="announcement"
+ depends="prepare-docs"
+ description="* Creates the announcement for new releases">
+
+ <copy file="announcement.xml" tofile="${build.context}\xdocs\announcement.xml"
filtering="on"/>
+
+ <style basedir="${build.context}\xdocs"
+ destdir="${build.dir}"
+ style="${build.context}\stylesheets\announcement2txt.xsl"
+ includes="announcement.xml"
+ extension=".txt"
+ force="true"/>
</target>
1.2 +2 -2 xml-cocoon2/src/documentation/stylesheets/announcement.xsl
Index: announcement.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon2/src/documentation/stylesheets/announcement.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- announcement.xsl 3 Jan 2002 12:31:01 -0000 1.1
+++ announcement.xsl 31 Jan 2002 13:46:00 -0000 1.2
@@ -4,8 +4,8 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="changes">
- <xsl:variable name="file" select="concat('../', @file)"/>
+ <xsl:variable name="file" select="@file"/>
<xsl:variable name="version" select="@version"/>
- <xsl:apply-templates
select="document($file)/changes/release[attribute::version=string($version)]"/>
+ <xsl:apply-templates
select="document($file)/changes/release[@version=string($version)]"/>
</xsl:template>
</xsl:stylesheet>
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]