cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From step...@apache.org
Subject cvs commit: xml-cocoon2/src/scratchpad/webapp/samples/slide description2html4content.xsl sitemap.xmap
Date Mon, 19 Aug 2002 09:30:48 GMT
stephan     2002/08/19 02:30:48

  Modified:    src/scratchpad/webapp/samples/slide
                        description2html4content.xsl sitemap.xmap
  Log:
  Add support to display all files with 'text/plain' and 'text/xml'.
  
  Revision  Changes    Path
  1.4       +14 -1     xml-cocoon2/src/scratchpad/webapp/samples/slide/description2html4content.xsl
  
  Index: description2html4content.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/description2html4content.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- description2html4content.xsl	19 Aug 2002 08:08:11 -0000	1.3
  +++ description2html4content.xsl	19 Aug 2002 09:30:47 -0000	1.4
  @@ -2,7 +2,8 @@
   <xsl:stylesheet version="1.0"
                   xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
                   xmlns:source="http://xml.apache.org/cocoon/source/2.0"
  -                xmlns:dav="DAV:">
  +                xmlns:dav="DAV:"
  +                xmlns:xi="http://www.w3.org/2001/XInclude">
   
    <xsl:output indent="yes"/>
   
  @@ -205,6 +206,18 @@
   
                <xsl:when test="@source:mime-type='image/jpeg'">
                 <img src="/cocoon/samples/slide/view/{substring-after(@source:systemid,'://')}"/>
  +             </xsl:when>
  +
  +             <xsl:when test="@source:mime-type='text/plain'">
  +              <pre>
  +               <xi:include href="{@source:systemid}" parse="text"/>
  +              </pre>
  +             </xsl:when>
  +
  +             <xsl:when test="@source:mime-type='text/xml'">
  +              <pre>
  +               <xi:include href="{@source:systemid}" parse="text"/>
  +              </pre>
                </xsl:when>
   
                <xsl:otherwise>
  
  
  
  1.12      +3 -0      xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/scratchpad/webapp/samples/slide/sitemap.xmap,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- sitemap.xmap	16 Aug 2002 12:42:56 -0000	1.11
  +++ sitemap.xmap	19 Aug 2002 09:30:47 -0000	1.12
  @@ -17,6 +17,8 @@
                       src="org.apache.cocoon.webapps.session.transformation.SessionTransformer"/>
      <map:transformer logger="sitemap.transformer.write-source" name="write-source"
                       src="org.apache.cocoon.transformation.SourceWritingTransformer"/>
  +   <map:transformer logger="sitemap.transformer.xinclude" name="xinclude" 
  +                    src="org.apache.cocoon.transformation.XIncludeTransformer"/>
     </map:transformers>
   
     <map:serializers default="html">
  @@ -173,6 +175,7 @@
   
         <map:generate src="cocoon:/description/{1}"/>
         <map:transform src="description2html4content.xsl"/>
  +      <map:transform type="xinclude"/>
         <map:serialize type="html"/>
        </map:match>
   
  
  
  

----------------------------------------------------------------------
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