Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update after 1.3 release.

Converted news into a separate XML format so an RSS feed can be generated.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/commons/trunk@635326 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 6628d458af9d0cccfb58ceeb211f489eb69162ba 1 parent df90e69
@jmaerki jmaerki authored
View
14 forrest.properties
@@ -68,12 +68,12 @@ project.skin=pelt
# Values are inherited unless overridden.
# e.g. if forrest.validate=false then all others are false unless set to true.
#forrest.validate=true
-#forrest.validate.xdocs=${forrest.validate}
-#forrest.validate.skinconf=${forrest.validate}
-#forrest.validate.sitemap=${forrest.validate}
-#forrest.validate.stylesheets=${forrest.validate}
-#forrest.validate.skins=${forrest.validate}
-#forrest.validate.skins.stylesheets=${forrest.validate.skins}
+forrest.validate.xdocs=false #${forrest.validate}
+forrest.validate.skinconf=${forrest.validate}
+forrest.validate.sitemap=${forrest.validate}
+forrest.validate.stylesheets=${forrest.validate}
+forrest.validate.skins=${forrest.validate}
+forrest.validate.skins.stylesheets=${forrest.validate.skins}
# *.failonerror=(true|false) - stop when an XML file is invalid
#forrest.validate.failonerror=true
@@ -99,7 +99,7 @@ project.skin=pelt
#forrest.jvmargs=
# The bugtracking URL - the issue number will be appended
project.bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
-#bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
+bugtracking-url=http://issues.apache.org/bugzilla/show_bug.cgi?id=
#project.bugtracking-url=http://issues.apache.org/jira/browse/
# The issues list as rss
#project.issues-rss-url=
View
22 forrest.properties.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<properties>
+<!-- Project identity -->
+ <property name="projectInfo.project.fullname" value="Apache XML Graphics Commons"/>
+ <property name="projectInfo.project.url" value="http://xmlgraphics.apache.org/commons/"/>
+</properties>
View
29 src/documentation/content/xdocs/index.xml
@@ -71,6 +71,11 @@
<td>Batik</td>
</tr>
<tr>
+ <td>Image loader framework (format detection, conversion and unified handling for bitmap and vector images).</td>
+ <td>org.apache.xmlgraphics.image.loader</td>
+ <td>new</td>
+ </tr>
+ <tr>
<td>Graphics2D implementation that produces PostScript and EPS</td>
<td>org.apache.xmlgraphics.java2d.ps</td>
<td>FOP</td>
@@ -101,26 +106,10 @@
</section>
<section>
<title>News</title>
- <section>
- <title>21 July 2007: Version 1.2 Released</title>
- <p>This release mainly adds support for CMYK and GRAY color spaces for
- PSGenerator. For details about other fixes, please see the <a
- href="changes.html">Changes</a> page.</p>
- </section>
- <section>
- <title>22 December 2006: Version 1.1 Released</title>
- <p>
- This release adds an XMP metadata framework and brings improvements for the
- ImageWriter package plus some minor fixes mainly in the PostScript area.
- </p>
- </section>
- <section>
- <title>17 April 2006: Version 1.0 Released</title>
- <p>
- This is the first release of Apache XML Graphics Commons. There are currently no
- known issues with the code.
- </p>
- </section>
+ <p>
+ RSS Feed: <a href="subproject-news-feed.rss"><img src="feed-icon-14x14.png" alt="Subproject News Feed"/></a>
+ </p>
+ <xi:include href="cocoon://subproject-news-document.xml#xpointer(/document/body/*)" xmlns:xi="http://www.w3.org/2001/XInclude"/>
</section>
</body>
</document>
View
35 src/documentation/content/xdocs/news.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<news>
+ <item date="2008-03-07" title="Version 1.3 Released">
+ <p>
+ The most important addition in this release is an image loading framework
+ which supports all sorts of different image formats (bitmap and vector) and
+ is highly extensible.
+ </p>
+ <p>
+ Besides that there were a larger number of smaller additions and bugfixes.
+ </p>
+ <p>
+ Support for Java 1.3 has been dropped. Java 1.4 or later is required now.
+ </p>
+ </item>
+ <item date="2007-07-21" title="Version 1.2 Released">
+ <p>
+ This release mainly adds support for CMYK and GRAY color spaces for
+ PSGenerator. For details about other fixes, please see the
+ <a href="changes.html">Changes</a> page.
+ </p>
+ </item>
+ <item date="2006-12-22" title="Version 1.1 Released">
+ <p>
+ This release adds an XMP metadata framework and brings improvements for the
+ ImageWriter package plus some minor fixes mainly in the PostScript area.
+ </p>
+ </item>
+ <item date="2006-04-17" title="Version 1.0 Released">
+ <p>
+ This is the first release of Apache XML Graphics Commons. There are currently no
+ known issues with the code.
+ </p>
+ </item>
+</news>
View
BIN  src/documentation/resources/images/feed-icon-14x14.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
53 src/documentation/resources/stylesheets/news2document.xsl
@@ -0,0 +1,53 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Id$ -->
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:date="http://exslt.org/dates-and-times"
+ extension-element-prefixes="date"
+ version="1.0">
+
+ <date:date-format lang="en" first-day-in-week="monday"/>
+
+ <xsl:template match="news">
+ <document>
+ <header>
+ <title>News</title>
+ </header>
+ <body>
+ <xsl:apply-templates select="item"/>
+ </body>
+ </document>
+ </xsl:template>
+
+ <xsl:template match="item">
+ <section id="news-{@date}">
+ <title>
+ <xsl:value-of select="date:day-in-month(@date)"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="date:month-abbreviation(@date)"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="date:year(@date)"/>
+ <xsl:text>: </xsl:text>
+ <xsl:value-of select="@title"/>
+ </title>
+ <xsl:copy-of select="."/>
+ </section>
+ </xsl:template>
+
+</xsl:stylesheet>
View
58 src/documentation/resources/stylesheets/news2rss.xsl
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Id$ -->
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:date="http://exslt.org/dates-and-times"
+ extension-element-prefixes="date"
+ version="1.0">
+ <xsl:param name="project-name" select="//skinconfig/project-name"/>
+ <xsl:param name="project-url" select="//skinconfig/project-url"/>
+ <xsl:template match="news">
+ <rss version="2.0">
+ <channel>
+ <title><xsl:value-of select="$project-name"/> News</title>
+ <link><xsl:value-of select="$project-url"/></link>
+ <description>
+ Subproject News for <xsl:value-of select="$project-name"/>
+ </description>
+ <language>en</language>
+ <xsl:apply-templates/>
+ </channel>
+ </rss>
+ </xsl:template>
+ <xsl:template match="item">
+ <item>
+ <title>
+ <xsl:value-of select="date:day-in-month(@date)"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="date:month-abbreviation(@date)"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="date:year(@date)"/>
+ <xsl:text>: </xsl:text>
+ <xsl:value-of select="@title"/>
+ </title>
+ <guid>news-<xsl:value-of select="@date"/></guid>
+ <link><xsl:value-of select="$project-url"/>/index.html#news-<xsl:value-of select="@date"/></link>
+ <pubDate><xsl:value-of select="date:format-date(@date, 'EEE, d MMM yyyy HH:mm:ss Z')"/></pubDate>
+ <description>
+ <xsl:apply-templates/>
+ </description>
+ </item>
+ </xsl:template>
+</xsl:stylesheet>
View
51 src/documentation/sitemap.xmap
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- $Id$ -->
+<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <!--
+ -->
+ <map:components>
+ <map:serializers default="html">
+ <map:serializer name="rss" mime-type="application/rss+xml" src="org.apache.cocoon.serialization.XMLSerializer"/>
+ </map:serializers>
+ </map:components>
+
+ <map:pipelines>
+
+ <!-- This is used by xinclude statements -->
+ <map:pipeline>
+ <map:match type="regexp" pattern="^(.*?)([^/]*)subproject-news-document.xml">
+ <map:generate src="{properties:content.xdocs}{1}news.xml"/>
+ <map:transform src="resources/stylesheets/news2document.xsl" >
+ <map:parameter name="path" value="{1}{2}"/>
+ </map:transform>
+ <map:serialize type="xml"/>
+ </map:match>
+ <map:match type="regexp" pattern="^(.*?)([^/]*)subproject-news-feed.rss">
+ <map:generate src="{properties:content.xdocs}{1}news.xml"/>
+ <map:transform src="resources/stylesheets/news2rss.xsl" >
+ <map:parameter name="path" value="{1}{2}"/>
+ <map:parameter name="project-name" value="{properties:projectInfo.project.fullname}"/>
+ <map:parameter name="project-url" value="{properties:projectInfo.project.url}"/>
+ </map:transform>
+ <map:serialize type="rss"/>
+ </map:match>
+ </map:pipeline>
+
+ </map:pipelines>
+</map:sitemap>
Please sign in to comment.
Something went wrong with that request. Please try again.