vgritsenko 02/04/05 19:55:33 Modified: src/documentation/xdocs/userdocs/concepts views.xml Log: remove suggestion to use map:label Revision Changes Path 1.2 +15 -27 xml-cocoon2/src/documentation/xdocs/userdocs/concepts/views.xml Index: views.xml =================================================================== RCS file: /home/cvs/xml-cocoon2/src/documentation/xdocs/userdocs/concepts/views.xml,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- views.xml 3 Jan 2002 12:31:04 -0000 1.1 +++ views.xml 6 Apr 2002 03:55:33 -0000 1.2 @@ -114,8 +114,8 @@ <map:views> <map:view name="content" from-label="content"> <map:serialize type="xml"/> -</map:view> - ]]></source> +</map:view>]]></source> + <p> The next example performs an xslt transformation before serializing to xml. @@ -125,8 +125,8 @@ <map:view name="dublin-core" from-label="dublin-core"> <map:transform src="stylesheets/document2dubline-core.xsl"/> <map:serialize type="xml"/> -</map:view> - ]]></source> +</map:view>]]></source> + <p> The last example defines a view specifying the position-from attribute "last", and serializing to pdf, for a pdf-aware only indexer, or archiver. @@ -136,8 +136,8 @@ <map:view name="full-document-content" from-position="last"> <map:transform src="stylesheets/document2fo.xsl"/> <map:serialize type="fo2pdf"/> -</map:view> - ]]></source> +</map:view>]]></source> + </s2> <s2 title="Placing Labels"> <p> @@ -250,8 +250,8 @@ <map:transform type="bar"/> <map:label name="mylabel"/> <map:serialize/> -... - ]]></source> +...]]></source> + <p> Having this sitemap: </p> @@ -260,8 +260,8 @@ <map:generate src="foo"/> <map:transform type="bar" label="mylabel"/> <map:serialize/> -... - ]]></source> +...]]></source> + </s2> <s2 title="View Processing"> <p> @@ -273,8 +273,7 @@ <map:views> <map:view name="content" from-label="content"> <map:serialize type="xml"/> -</map:view> - ]]></source> +</map:view>]]></source> <p> It only defines what processing steps should be taken, after some @@ -302,8 +301,7 @@ <map:generator name="serverpages" src="org.apache.cocoon.generation.ServerPagesGenerator" label="content"/> - ... - ]]></source> + ...]]></source> <p> Here a number of generators are declared, each one has a label @@ -327,14 +325,8 @@ <source><![CDATA[ <map:view name="links" from-position="last"> <map:serialize type="links"/> -</map:view> - ]]></source> +</map:view>]]></source> - <p> - There is also another way to specify these exit points: - <code><map:label name="mylabel"></code>. Such a tag can be - embedded in a pipeline at any place. - </p> </s2> <s2 title="Requesting A View"> @@ -345,15 +337,11 @@ <p> For example querying the view <code>content</code> of the page: </p> - <source> -http://localhost:8080/cocoon/documents/index.html - </source> + <source>http://localhost:8080/cocoon/documents/index.html</source> <p> You use following URL: </p> - <source> -http://localhost:8080/cocoon/documents/index.html?cocoon-view=content - </source> + <source>http://localhost:8080/cocoon/documents/index.html?cocoon-view=content</source> <p> Suggestions for further accessing views are: </p>
---------------------------------------------------------------------- In case of troubles, e-mail: [EMAIL PROTECTED] To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]