dims 01/04/19 07:06:59
Modified: webapp Tag: xml-cocoon2 sitemap.xmap
webapp/docs/samples Tag: xml-cocoon2 samples.xml
webapp/stylesheets/news Tag: xml-cocoon2 isyndicate.xsl
Added: webapp/stylesheets/news Tag: xml-cocoon2 news.xsl
Log:
- added sample for Aggregation - Show Slashdot/iSyndicate/Moreover
news on the same page
Revision Changes Path
No revision
No revision
1.1.2.53 +19 -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.52
retrieving revision 1.1.2.53
diff -u -r1.1.2.52 -r1.1.2.53
--- sitemap.xmap 2001/04/16 19:30:42 1.1.2.52
+++ sitemap.xmap 2001/04/19 14:06:53 1.1.2.53
@@ -243,6 +243,14 @@
<map:read src="http://images.slashdot.org/topics/{1}.jpg"
mime-type="image/jpg"/>
</map:match>
+ <map:match pattern="news/**.gif">
+ <map:read src="http://images.slashdot.org/topics/{1}.gif"
mime-type="image/gif"/>
+ </map:match>
+
+ <map:match pattern="news/**.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"/>
@@ -252,6 +260,17 @@
<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>
+
+
+ <map:match pattern="news/aggregate.xml">
+ <map:aggregate element="page" ns="http://foo.bar.com/myspace">
+ <map:part src="slashdot/slashdot.xml" element="slashdot"
ns="http://foo.bar.com/slashdot"/>
+ <map:part src="moreover/moreover.xml" element="moreover"
ns="http://foo.bar.com/moreover"/>
+ <map:part src="isyndicate/news.xml" element="isyndicate"
ns="http://foo.bar.com/isyndicate"/>
+ </map:aggregate>
+ <map:transform src="stylesheets/news/news.xsl"/>
<map:serialize/>
</map:match>
No revision
No revision
1.1.2.20 +3 -0 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.19
retrieving revision 1.1.2.20
diff -u -r1.1.2.19 -r1.1.2.20
--- samples.xml 2001/04/16 19:30:43 1.1.2.19
+++ samples.xml 2001/04/19 14:06:55 1.1.2.20
@@ -45,6 +45,9 @@
<sample name="iSyndicate.com" href="isyndicate/news.xml">
Live XML News Feed from iSyndicate.com.
</sample>
+ <sample name="Aggregation" href="news/aggregate.xml">
+ Single Web Page with News from all three sources above.
+ </sample>
</group>
<group name="Static Content">
No revision
No revision
1.1.2.2 +20 -3 xml-cocoon/webapp/stylesheets/news/Attic/isyndicate.xsl
Index: isyndicate.xsl
===================================================================
RCS file: /home/cvs/xml-cocoon/webapp/stylesheets/news/Attic/isyndicate.xsl,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -r1.1.2.1 -r1.1.2.2
--- isyndicate.xsl 2001/04/16 14:01:14 1.1.2.1
+++ isyndicate.xsl 2001/04/19 14:06:57 1.1.2.2
@@ -1,10 +1,27 @@
<xsl:stylesheet version="1.0" exclude-result-prefixes="msxsl local xql"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:local="#local-functions"
xmlns:xql="#xql-functions"><!-- [XSL-XSLT] Updated namespace, added the
required version attribute, and added namespaces necessary for script
extensions. -->
<!-- [XSL-XSLT] Explicitly apply the default (and only) indent-result
behavior -->
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
- <!-- [XSL-XSLT] Simulate lack of built-in templates -->
- <xsl:template match="@*|/|node()"/>
+
+ <!-- Match The Root Node -->
<xsl:template match="/">
- <xsl:for-each select="newsfeed/channel">
+ <HTML>
+ <BODY>
+ <table border="0" width="100%">
+ <tr>
+ <td colspan="3" STYLE="background-color : #B0E0E6;
font : x-small Arial, Helvetica, sans-serif;">
+ <CENTER>
+ <b>Current News from iSyndicate.com</b>
+ </CENTER>
+ </td>
+ </tr>
+ <xsl:apply-templates select="//newsfeed"/>
+ </table>
+ </BODY>
+ </HTML>
+ </xsl:template>
+
+ <xsl:template match="newsfeed">
+ <xsl:for-each select="channel">
<tr>
<td>
<table bgColor="#f0f8ff" border="0"
cellPadding="2" WIDTH="100%" cellSpacing="0">
No revision
No revision
1.1.2.1 +16 -0 xml-cocoon/webapp/stylesheets/news/Attic/news.xsl
----------------------------------------------------------------------
In case of troubles, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]