cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/profiler/samples samples.xml sitemap.xmap
Date Fri, 21 Mar 2003 17:31:28 GMT
bruno       2003/03/21 09:31:28

  Modified:    src/blocks/profiler/samples samples.xml sitemap.xmap
  Log:
  Use cocoon-view mechanism to get pretty XML.
  
  Revision  Changes    Path
  1.2       +1 -1      cocoon-2.1/src/blocks/profiler/samples/samples.xml
  
  Index: samples.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/profiler/samples/samples.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- samples.xml	9 Mar 2003 00:05:54 -0000	1.1
  +++ samples.xml	21 Mar 2003 17:31:28 -0000	1.2
  @@ -17,7 +17,7 @@
   
     <sample name="Profiler Result 2" href="profile2.html">Another view of the results.</sample>
   
  -  <sample name="XML Output" href="profile.xml">Show source xml code of the profiler
generator.</sample>
  +  <sample name="XML Output" href="profile.xml?cocoon-view=pretty-content">Show source
xml code of the profiler generator.</sample>
    </group>
   
   </samples>
  
  
  
  1.2       +19 -2     cocoon-2.1/src/blocks/profiler/samples/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/profiler/samples/sitemap.xmap,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- sitemap.xmap	9 Mar 2003 00:05:54 -0000	1.1
  +++ sitemap.xmap	21 Mar 2003 17:31:28 -0000	1.2
  @@ -31,6 +31,24 @@
   
    </map:components>
   
  +<!-- =========================== Views =================================== -->
  +
  + <map:views>
  +  <map:view name="content" from-label="content">
  +   <map:serialize type="xml"/>
  +  </map:view>
  +
  +  <map:view name="pretty-content" from-label="data">
  +    <map:transform src="context://samples/common/style/xsl/html/simple-xml2html.xsl"/>
  +    <map:serialize type="html"/>
  +  </map:view>
  +
  +  <map:view name="links" from-position="last">
  +   <map:serialize type="links"/>
  +  </map:view>
  +  
  + </map:views>
  +
   <!-- =========================== Pipelines ================================= -->
   
    <map:pipelines>
  @@ -106,8 +124,7 @@
   
      <map:match pattern="profile.xml">
       <map:generate type="profiler"/>
  -    <map:transform src="context://samples/common/style/xsl/html/simple-xml2html.xsl"/>
  -    <map:serialize type="html"/>
  +    <map:serialize type="xml"/>
      </map:match>
   
      <map:match pattern="*.css">
  
  
  

Mime
View raw message