vgritsenko 02/01/25 16:43:18 Modified: src/webapp/sub sitemap.xmap src/webapp/sub/docs samples.xml Log: - comment out broken samples - add view-source pipeline - add view sitemap source sample Revision Changes Path 1.3 +7 -0 xml-cocoon2/src/webapp/sub/sitemap.xmap Index: sitemap.xmap =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/sub/sitemap.xmap,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- sitemap.xmap 22 Jan 2002 20:53:22 -0000 1.2 +++ sitemap.xmap 26 Jan 2002 00:43:18 -0000 1.3 @@ -134,6 +134,13 @@ <map:serialize/> </map:match> + <!-- this is used to show the content of any XML file. --> + <map:match pattern="view-source"> + <!-- this XSP page takes one request parameter: filename --> + <map:generate type="serverpages" src="context://docs/samples/slides/view-source.xsp"/> + <map:serialize/> + </map:match> + <!-- This erorr handler customizes ResourceNotFound errors --> <map:handle-errors type="404"> <map:transform src="stylesheets/error2html.xsl"/> 1.4 +8 -3 xml-cocoon2/src/webapp/sub/docs/samples.xml Index: samples.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/webapp/sub/docs/samples.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- samples.xml 24 Jan 2002 10:45:37 -0000 1.3 +++ samples.xml 26 Jan 2002 00:43:18 -0000 1.4 @@ -31,10 +31,11 @@ Source is obtained via http://localhost:8080/cocoon/sub/xsp-source (Note: if you run Cocoon on another host/port, you have to edit sub-sitemap) </sample> - +<!-- FIXME <sample name="Dynamic XSP" href="xsp-dynamic"> Source is generated dynamically and obtained as Cocoon source cocoon:/xsp-dynamic-source </sample> +--> </group> <group name="Obtaining XSL Source"> @@ -59,7 +60,7 @@ XSL is dynamically generated and obtained as Cocoon source cocoon:/xsl-dynamic-source. </sample> </group> - +<!-- FIXME <group name="Dynamic XSP With Dynamic XSL"> <sample name="All Dynamic" href="all-dynamic"> Combines last XSP sample with last XSL sample: XSP is obtained via Cocoon @@ -67,8 +68,12 @@ source cocoon:/xsl-dynamic-source. </sample> </group> - +--> <group name="System pages"> + <sample name="Sitemap" href="view-source?filename=/sub/sitemap.xmap"> + shows the source file of this sitemap. Located in the file sub/sitemap.xmap + </sample> + <sample name="Error" href="generror"> Error is generated in sub-sitemap and processed in main sitemap </sample>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]