You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2003/10/22 15:28:07 UTC
cvs commit: cocoon-2.1/src/webapp/samples/flow/prefs sitemap.xmap
joerg 2003/10/22 06:28:07
Modified: src/blocks/databases/samples sitemap.xmap
src/blocks/databases/samples/org-db sitemap.xmap
src/webapp/samples/flow sitemap.xmap
src/webapp/samples/flow/prefs sitemap.xmap
Log:
starting with fixing explicite view-source
Revision Changes Path
1.5 +1 -1 cocoon-2.1/src/blocks/databases/samples/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/databases/samples/sitemap.xmap,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sitemap.xmap 29 Jul 2003 03:15:46 -0000 1.4
+++ sitemap.xmap 22 Oct 2003 13:28:07 -0000 1.5
@@ -31,7 +31,7 @@
</map:view>
<map:view from-label="content" name="pretty-content">
- <map:transform src="context://stylesheets/system/xml2html.xsl"/>
+ <map:transform src="context://stylesheets/system/xml2html.xslt"/>
<map:serialize type="html"/>
</map:view>
1.2 +18 -0 cocoon-2.1/src/blocks/databases/samples/org-db/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/databases/samples/org-db/sitemap.xmap,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sitemap.xmap 9 Mar 2003 00:03:22 -0000 1.1
+++ sitemap.xmap 22 Oct 2003 13:28:07 -0000 1.2
@@ -37,6 +37,24 @@
</map:action-set>
</map:action-sets>
+<!-- ============================ Views ==================================== -->
+
+ <map:views>
+ <map:view name="content" from-label="content">
+ <map:serialize type="xml"/>
+ </map:view>
+
+ <map:view from-label="content" name="pretty-content">
+ <map:transform src="context://stylesheets/system/xml2html.xslt"/>
+ <map:serialize type="html"/>
+ </map:view>
+
+ <map:view name="links" from-position="last">
+ <map:serialize type="links"/>
+ </map:view>
+
+ </map:views>
+
<!-- =========================== Pipelines ================================= -->
<map:pipelines>
1.9 +16 -1 cocoon-2.1/src/webapp/samples/flow/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/flow/sitemap.xmap,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- sitemap.xmap 20 May 2003 00:54:11 -0000 1.8
+++ sitemap.xmap 22 Oct 2003 13:28:07 -0000 1.9
@@ -4,6 +4,21 @@
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:views>
+ <map:view name="content" from-label="content">
+ <map:serialize type="xml"/>
+ </map:view>
+
+ <map:view from-label="content" name="pretty-content">
+ <map:transform src="context://stylesheets/system/xml2html.xslt"/>
+ <map:serialize type="html"/>
+ </map:view>
+
+ <map:view name="links" from-position="last">
+ <map:serialize type="links"/>
+ </map:view>
+ </map:views>
+
<map:pipelines>
<map:pipeline>
1.5 +21 -1 cocoon-2.1/src/webapp/samples/flow/prefs/sitemap.xmap
Index: sitemap.xmap
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/webapp/samples/flow/prefs/sitemap.xmap,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- sitemap.xmap 14 Jul 2003 09:30:46 -0000 1.4
+++ sitemap.xmap 22 Oct 2003 13:28:07 -0000 1.5
@@ -4,6 +4,21 @@
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
+ <map:views>
+ <map:view name="content" from-label="content">
+ <map:serialize type="xml"/>
+ </map:view>
+
+ <map:view from-label="content" name="pretty-content">
+ <map:transform src="context://stylesheets/system/xml2html.xslt"/>
+ <map:serialize type="html"/>
+ </map:view>
+
+ <map:view name="links" from-position="last">
+ <map:serialize type="links"/>
+ </map:view>
+ </map:views>
+
<!-- indicates what flowscript to attach to this sitemap -->
<map:flow language="javascript">
<map:script src="prefs.js"/>
@@ -57,6 +72,11 @@
<map:match pattern="continue.*">
<map:call continuation="{1}"/>
</map:match>
+
+ <map:match pattern="prefs.js">
+ <map:read src="{0}" mime-type="text/plain"/>
+ </map:match>
+
</map:pipeline>
</map:pipelines>
</map:sitemap>