dims 01/04/16 07:01:15
Modified: webapp Tag: xml-cocoon2 sitemap.xmap
webapp/docs/samples Tag: xml-cocoon2 samples.xml
Added: lib Tag: xml-cocoon2 Tidy.jar
webapp/stylesheets/news Tag: xml-cocoon2 isyndicate.xsl
moreover.xsl slashdot.xsl
Log:
#1. Added JTidy from http://sourceforge.net/projects/jtidy/. This can be used
to scrape content from external HTML sources.
#2. Added samples of displaying custom versions of News pages from
- Slashdot
- Moreover News
- iSyndicate.com
Please make sure that your proxy is set when running your servlet engine.
Example for Tomcat:
SET TOMCAT_OPTS=-DproxySet=true -DproxyHost=proxy.xxx.com -DproxyPort=80
Revision Changes Path
No revision
No revision
1.1.2.1 +599 -0 xml-cocoon/lib/Attic/Tidy.jar
<<Binary file>>
No revision
No revision
1.1.2.50 +29 -0 xml-cocoon/webapp/Attic/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-cocoon/webapp/Attic/sitemap.xmap,v
retrieving revision 1.1.2.49
retrieving revision 1.1.2.50
diff -u -r1.1.2.49 -r1.1.2.50
--- sitemap.xmap 2001/04/12 15:54:53 1.1.2.49
+++ sitemap.xmap 2001/04/16 14:01:11 1.1.2.50
@@ -15,6 +15,7 @@
<map:generator name="extractor"
src="org.apache.cocoon.generation.FragmentExtractorGenerator"/>
<map:generator name="script"
src="org.apache.cocoon.generation.ScriptGenerator"/>
<map:generator name="velocity"
src="org.apache.cocoon.generation.VelocityGenerator"/>
+ <map:generator name="html"
src="org.apache.cocoon.generation.HTMLGenerator" label="content"/>
</map:generators>
<map:transformers default="xslt">
@@ -220,6 +221,34 @@
<map:match pattern="sites/images/*.gif">
<map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
+ </map:match>
+
+ <!-- ================ NEWS =========================== -->
+
+ <map:match pattern="slashdot/slashdot.xml">
+ <map:generate src="http://www.slashdot.org/slashdot.xml"/>
+ <map:transform src="stylesheets/news/slashdot.xsl"/>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="slashdot/**.gif">
+ <map:read src="http://images.slashdot.org/topics/{1}.gif"
mime-type="image/gif"/>
+ </map:match>
+
+ <map:match pattern="slashdot/**.jpg">
+ <map:read src="http://images.slashdot.org/topics/{1}.jpg"
mime-type="image/jpg"/>
+ </map:match>
+
+ <map:match pattern="moreover/moreover.xml">
+ <map:generate
src="http://www.moreover.com/cgi-local/page?o=xml&c=Developer%20news"/>
+ <map:transform src="stylesheets/news/moreover.xsl"/>
+ <map:serialize/>
+ </map:match>
+
+ <map:match pattern="isyndicate/news.xml">
+ <map:generate src="http://headlines.isyndicate.com/pages/cui/news.xml"/>
+ <map:transform src="stylesheets/news/isyndicate.xsl"/>
+ <map:serialize/>
</map:match>
<!-- ================ Static =========================== -->
No revision
No revision
1.1.2.18 +23 -8 xml-cocoon/webapp/docs/samples/Attic/samples.xml
Index: samples.xml
===================================================================
RCS file: /home/cvs/xml-cocoon/webapp/docs/samples/Attic/samples.xml,v
retrieving revision 1.1.2.17
retrieving revision 1.1.2.18
diff -u -r1.1.2.17 -r1.1.2.18
--- samples.xml 2001/04/12 15:54:54 1.1.2.17
+++ samples.xml 2001/04/16 14:01:12 1.1.2.18
@@ -35,6 +35,18 @@
</sample>
</group>
+ <group name="News Feeds">
+ <sample name="Slashdot" href="slashdot/slashdot.xml">
+ Live XML Feed from Slashdot.
+ </sample>
+ <sample name="Moreover.com" href="moreover/moreover.xml">
+ Live XML Developer News Feed from moreover.com.
+ </sample>
+ <sample name="iSyndicate.com" href="isyndicate/news.xml">
+ Live XML News Feed from iSyndicate.com.
+ </sample>
+ </group>
+
<group name="Static Content">
<sample name="formatting objects" href="fo">
This is an example of FO translated to PDF by Apache FOP.
@@ -42,14 +54,6 @@
<sample name="scalable vector graphics" href="svg">
An example of a SVG file rendered to a PNG image.
</sample>
- <sample name="Javascript Generator" href="scripts/hello.js">
- An example of the ScriptGenerator producing XML out of a Javascript
program.
- </sample>
- <sample name="Python Generator" href="scripts/hello.py">
- An example of the ScriptGenerator producing XML out of a Python program.
- You should make sure that you have the Jython interpreter (jython.jar)
from
- www.jython.org in the WEB-INF/lib directory of your Cocoon 2 webapp
context.
- </sample>
<sample name="slides" href="slides/slides">
Example of complex XSLT usage.
</sample>
@@ -84,6 +88,17 @@
</sample>
<sample name="File Uploads" href="xsp/upload" xlink:role="dynamic">
Sample to illustrate File uploads.
+ </sample>
+ </group>
+
+ <group name="Generators">
+ <sample name="Javascript Generator" href="scripts/hello.js">
+ An example of the ScriptGenerator producing XML out of a Javascript
program.
+ </sample>
+ <sample name="Python Generator" href="scripts/hello.py">
+ An example of the ScriptGenerator producing XML out of a Python program.
+ You should make sure that you have the Jython interpreter (jython.jar)
from
+ www.jython.org in the WEB-INF/lib directory of your Cocoon 2 webapp
context.
</sample>
<sample name="Velocity Generator" href="templates/hello-page.vm">
An example of the VelocityGenerator producing XML out of a Velocity
Template.
No revision
No revision
1.1.2.1 +40 -0 xml-cocoon/webapp/stylesheets/news/Attic/isyndicate.xsl
1.1.2.1 +65 -0 xml-cocoon/webapp/stylesheets/news/Attic/moreover.xsl
1.1.2.1 +71 -0 xml-cocoon/webapp/stylesheets/news/Attic/slashdot.xsl
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]