cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/jsp sitemap.xmap
Date Sat, 27 Apr 2002 18:22:43 GMT
vgritsenko    02/04/27 11:22:43

  Modified:    src/webapp/samples/jsp sitemap.xmap
  Log:
  fix samples
  
  Revision  Changes    Path
  1.2       +47 -45    xml-cocoon2/src/webapp/samples/jsp/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/jsp/sitemap.xmap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sitemap.xmap	16 Apr 2002 09:35:49 -0000	1.1
  +++ sitemap.xmap	27 Apr 2002 18:22:43 -0000	1.2
  @@ -1,50 +1,52 @@
   <?xml version="1.0"?>
   <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
  -	<!-- =========================== Components ================================ -->
  -	<map:components>
  -		<map:generators default="file">
  -			<!-- JspGenerator is used to get result of a JSP page 
  -			then output it as XML (SAX events)
  -			-->
  -			<map:generator logger="sitemap.generator.jsp" name="jsp"
  -				src="org.apache.cocoon.generation.JspGenerator"/>
  -		</map:generators>
  -		<map:transformers default="xslt"/>
  -		<map:readers default="resource">
  -			<!-- JSPReader is used to serve direct output from 
  -			a JSP page. Note, that JSP result can be non XML  -->
  -			<map:reader logger="sitemap.reader.jsp" name="jsp" 
  -				src="org.apache.cocoon.reading.JSPReader"/>
  -		</map:readers>
  -		<map:serializers default="html"/>
  -		<map:selectors default="browser"/>
  -		<map:matchers default="wildcard"/>
  -	</map:components>
  -	<!-- =========================== Pipelines ================================= -->
  -	<map:pipelines>
  -		<map:pipeline>
  -			<!-- This works only if TreeProcessor is used -->
  -			<map:match pattern="">
  -				<map:redirect-to uri="cocoon:/welcome.htm" />
  -			</map:match>
  -
  -			<map:match pattern="*.htm">
  -				<map:read type="jsp" src="{1}.jsp" mime-type="text/html" />
  -			</map:match>
  -
  -			<!-- Use this to debug your JSPs -->
  -			<map:match pattern="*.xml">
  -				<map:generate type="jsp" src="{1}.jsp"/>
  -				<map:serialize type="xml"/>
  -			</map:match>
  -
  -			<map:match pattern="*.jsp">
  -				<map:generate type="jsp" src="{1}.jsp"/>
  -				<map:transform src="style/xslt/simple-page2html.xsl"/>
  -				<map:serialize type="html"/>
  -			</map:match>
   
  -		</map:pipeline>
  -	</map:pipelines>
  +  <!-- =========================== Components ================================ -->
  +  <map:components>
  +    <map:generators default="file">
  +      <!-- JspGenerator is used to get result of a JSP page 
  +           then output it as XML (SAX events)
  +      -->
  +      <map:generator logger="sitemap.generator.jsp" name="jsp"
  +                     src="org.apache.cocoon.generation.JspGenerator"/>
  +    </map:generators>
  +    <map:transformers default="xslt"/>
  +    <map:readers default="resource">
  +      <!-- JSPReader is used to serve direct output from 
  +           a JSP page. Note, that JSP result can be non XML  -->
  +      <map:reader logger="sitemap.reader.jsp" name="jsp" 
  +                  src="org.apache.cocoon.reading.JSPReader"/>
  +    </map:readers>
  +    <map:serializers default="html"/>
  +    <map:selectors default="browser"/>
  +    <map:matchers default="wildcard"/>
  +  </map:components>
  +
  +  <!-- =========================== Pipelines ================================= -->
  +  <map:pipelines>
  +    <map:pipeline>
  +      <!-- This works only if TreeProcessor is used -->
  +      <map:match pattern="">
  +        <map:redirect-to uri="welcome.htm" />
  +      </map:match>
  +
  +      <map:match pattern="*.htm">
  +        <map:read type="jsp" src="{1}.jsp" mime-type="text/html" />
  +      </map:match>
  +
  +      <!-- Use this to debug your JSPs -->
  +      <map:match pattern="*.xml">
  +        <map:generate type="jsp" src="{1}.jsp"/>
  +        <map:serialize type="xml"/>
  +      </map:match>
  +
  +      <map:match pattern="*.jsp">
  +        <map:generate type="jsp" src="{1}.jsp"/>
  +        <map:transform src="simple-page2html.xsl"/>
  +        <map:serialize type="html"/>
  +      </map:match>
  +
  +    </map:pipeline>
  +  </map:pipelines>
   </map:sitemap>
   <!-- end of file -->
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message