cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@infoplanning.com>
Subject Re: [C2] Generator Already Set
Date Mon, 23 Oct 2000 16:47:00 GMT
That doesn't help if you aren't using the Cocoon samples
sitemap.  I have that, and that context works nicely.
The problem came in after my customized sitemap didn't
process nicely for some reason.
----- Original Message ----- 
From: "Davanum Srinivas" <dims@yahoo.com>
To: <cocoon-dev@xml.apache.org>
Sent: Monday, October 23, 2000 12:49 PM
Subject: Re: [C2] Generator Already Set


> Berin,
> 
> Use my sitemap.xmap and see if this helps. Adjust the gif, css, js paths if needed.
> 
> Thanks,
> dims
> 
> --- Berin Loritsch <bloritsch@infoplanning.com> wrote:
> > Yep.  I changed the XSL.  Here is a copy--we have a
> > rather complex layout for our page, but hopefully you
> > can sort it out.
> > 
> > ----- Original Message ----- 
> > From: "Davanum Srinivas" <dims@yahoo.com>
> > To: <cocoon-dev@xml.apache.org>
> > Sent: Monday, October 23, 2000 10:27 AM
> > Subject: Re: [C2] Generator Already Set
> > 
> > 
> > > Berin,
> > > 
> > > What did you try to modify? Did you try to change the XSL for the error page?
Any way send me
> > the
> > > changes, i will take a look.
> > > 
> > > Thanks,
> > > dims
> > > 
> > > --- Berin Loritsch <bloritsch@infoplanning.com> wrote:
> > > > Has anyone looked into this?  It is frustrating when everything looks
OK, but
> > > > you *have* to use the included Cocoon error page just to make things work.
> > > > 
> > > > My sitemap doesn't explicitly look like it is setting the Generator for
error
> > > > pages at all.  Any help on this front would be appreciated.
> > > > 
> > > > ----- Original Message -----
> > > > From: "Berin Loritsch" <bloritsch@infoplanning.com>
> > > > To: <cocoon-dev@xml.apache.org>
> > > > Sent: Friday, October 20, 2000 2:47 PM
> > > > Subject: [C2] Generator Already Set
> > > > 
> > > > 
> > > > > I decided to do a quick port of our company's web site to
> > > > > Cocoon2 to see just how easy it was.  Since we only had
> > > > > one XSP page, it was cake.  However, when I wanted to
> > > > > play with changing the style of the error page to match
> > > > > the rest of the site, I got the following error and
> > > > > nothing renders any more:
> > > > >
> > > > >
> > > >
> > >
> >
> ----------------------------------------------------------------------------------------------------
> > > > > :Error creating the resource
> > > > >
> > > > > Generator already set. You can only select one Generator (generator:file)
> > > > >
> > > > > from
> > > > >
> > > > > source
> > > > >
> > > > > org.apache.cocoon.ProcessingException
> > > > >
> > > > > description
> > > > >
> > > > > org.apache.cocoon.ProcessingException: Generator already set. You
can only select one
> > > > Generator (generator:file)
> > > > >
> > > > > extra info
> > > > >
> > > > > org.apache.cocoon.ProcessingException: Generator already set. You
can only select one
> > > > Generator (generator:file) at
> > > > > org.apache.cocoon.sitemap.ResourcePipeline.setGenerator(ResourcePipeline.java:78)
at
> > > > > _D_._jakarta_tomcat_4_0_m3._webapps._ROOT._sitemap_xmap.process(_sitemap_xmap.java:1137)
> > at
> > > > > org.apache.cocoon.sitemap.Handler.process(Handler.java:132) at
> > > > org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87) at
> > > > > org.apache.cocoon.Cocoon.process(Cocoon.java:226) at
> > > > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:166)
at
> > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> > > > >
> > org.apache.catalina.core.ApplicationFilterWrapper.doFilter(ApplicationFilterWrapper.java:159)
> > > > at
> > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:165)
at
> > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:174)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:1785)
at
> > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
> > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:343)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:785)
at
> > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:902)
at
> > > > java.lang.Thread.run(Thread.java:484)
> > > > >
> > > > > Error creating the resourceorg.apache.cocoon.ProcessingExceptionGenerator
already set. You
> > can
> > > > only select one Generator
> > > > > (generator:file)org.apache.cocoon.ProcessingException: Generator
already set. You can only
> > > > select one Generator
> > > > > (generator:file)org.apache.cocoon.ProcessingException: Generator
already set. You can only
> > > > select one Generator (generator:file)
> > > > at
> > > > > org.apache.cocoon.sitemap.ResourcePipeline.setGenerator(ResourcePipeline.java:78)
at
> > > > > _D_._jakarta_tomcat_4_0_m3._webapps._ROOT._sitemap_xmap.process(_sitemap_xmap.java:1137)
> > at
> > > > > org.apache.cocoon.sitemap.Handler.process(Handler.java:132) at
> > > > org.apache.cocoon.sitemap.Manager.invoke(Manager.java:87) at
> > > > > org.apache.cocoon.Cocoon.process(Cocoon.java:226) at
> > > > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:166)
at
> > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> > > > >
> > org.apache.catalina.core.ApplicationFilterWrapper.doFilter(ApplicationFilterWrapper.java:159)
> > > > at
> > > > > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:265)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:165)
at
> > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:174)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > org.apache.catalina.core.StandardContext.invoke(StandardContext.java:1785)
at
> > > > > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at
> > > > > org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
at
> > > > > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:343)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
at
> > > > > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:159)
at
> > > > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
at
> > > > > org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:785)
at
> > > > > org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:902)
at
> > > > java.lang.Thread.run(Thread.java:484)
> > > > >
> > > > > ---------------------------------------
> > > > > If you lust for Ham and Eggs, you have
> > > > > committed breakfast in your heart
> > > > > already.   -- C. S. Lewis
> > > > 
> > > 
> > > 
> > > =====
> > > Davanum Srinivas, JNI-FAQ Manager
> > > http://www.jGuru.com/faq/JNI
> > > 
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Messenger - Talk while you surf!  It's FREE.
> > > http://im.yahoo.com/
> > > <?xml version="1.0"?>
> > 
> > <xsl:stylesheet version="1.0"
> >  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> >  xmlns:error="http://apache.org/cocoon/2.0/error">
> > 
> >   <xsl:template match="error:notify">
> >     <html>
> >       <head>
> >         <title><xsl:value-of select="@type"/>:<xsl:value-of select="error:title"/></title>
> >         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
> >         <link rel="stylesheet" type="text/css" href="resources/ipms.css" title="ipms"/>
> >         <script src="resources/menu.js"></script>
> >       </head>
> >       <body marginwidth="0" marginheight="0">
> >        <table cellpadding="0" cellspacing="0" border="0">
> >           <tr valign="top">
> >             <td width="140"><img src="images/logo.gif" width="140" height="98"/></td>
> >             <td background="images/back.gif" width="100%">
> >               <img src="images/transp.gif" width="1" height="13"/><br/>
> >               <img src="images/title.gif" width="286" height="31"/><br/>
> >               <img src="images/transp.gif" width="200" height="20"/><a
href="search"><img
> > src="images/search.gif" border="0" width="82" height="27"/></a><br/>
> >               <span class="title"><xsl:value-of select="@type"/>:<xsl:value-of
> > select="error:title"/></span>
> >             </td>
> >           </tr>
> >         </table>
> >         <table cellpadding="0" cellspacing="0" border="0">
> >           <tr valign="top">
> >             <td width="140">
> >               <table cellpadding="0" cellspacing="0" border="0">
> >                 <tr align="top">
> >                   <td colspan="4">
> >                     <img src="images/navtop.gif"/>
> >                   </td>
> >                 </tr>
> > <xsl:copy>
> >                   <xsl:apply-templates select="document('menu.xml')"/>
> > </xsl:copy>
> >                 <tr>
> >                   <td colspan="4">
> >                     <img src="images/transp.gif" width="140" height="20"/><br/>
> >                     <a href="/gator"><img src="images/al.jpg" width="140"
height="59"
> > border="0"/></a>
> >                   </td>
> >                 </tr>
> >               </table>
> >             </td>
> >             <td>
> >               <h1>
> >                 <xsl:value-of select="@type"/>:<xsl:value-of select="error:title"/><br/>
> >                 <img src="images/stripe.gif" width="367" height="6" alt=""/>
> >               </h1>
> >       <div class="s1">
> >                 <h2><img src="images/ipms_arro.gif" width="18" height="16"/><xsl:value-of
> > select="@type"/></h2>
> > <div class="s2">
> >           <xsl:apply-templates select="error:message"/>
> > </div>
> > <h2><img src="images/ipms_arro.gif" width="18" height="16"/>details</h2>
> > <div class="s2">
> >   <h3>from</h3>
> >   <div class="s3">
> >     <xsl:apply-templates select="@sender"/>
> >   </div>
> >   <h3>source</h3>
> >   <div class="s3">
> >     <xsl:apply-templates select="error:source"/>
> >   </div>
> >   <h3>description</h3>
> >   <div class="s3">
> >     <xsl:apply-templates select="error:description"/>
> >   </div>
> > </div>
> > <h2><img src="images/ipms_arro.gif" width="18" height="16"/>extra info</h2>
> > <div class="s2">
> >   <xsl:apply-templates select="error:extra"/>
> > </div>
> >       </div>
> >               <xsl:apply-templates/>
> >       <p/>
> >               <img src="images/transp.gif" width="400" height="3"/>
> >       <a href="#top"><img src="images/topbutton.gif" border="0"/></a>
> >             </td>
> >           </tr>
> >         </table>
> >       </body>
> >     </html>
> >   </xsl:template>
> > 
> >   <xsl:template match="menu">
> >     <tr valign="top">
> >       <td width="16px">
> >         <img src="../images/menu_top_left.gif" width="16" height="7"/>
> >       </td>
> >       <td width="85px" bgcolor="#000000" align="right">
> >         <a class="menu"
> >            href="/welcome" 
> >            onMouseOver="changeImage('home','images/menu_tab_sel.gif');"
> >            onMouseOut="changeImage('home','images/menu_tab_unsel.gif');"
> >            onMouseDown="blurFocus(this);">welcome</a>
> >       </td>
> >       <td width="13px" background="images/menu_right_normal.gif">
> >         <img name="home" src="images/menu_tab_unsel.gif" width="13" height="20"/>
> >       </td>
> >       <td width="26px"/>
> >     </tr>
> >     <tr>
> >       <td width="16px"/>
> >       <td width="98px" align="right" colspan="2">
> >         <img src="images/menu_sep.gif" width="98" height="6"/>
> >       </td>
> >       <td width="26px"/>
> >     </tr>
> >     <xsl:apply-templates/>
> >   </xsl:template>
> > 
> >   <xsl:template match="group">
> >     <tr valign="top">
> >       <td width="16px"/>
> >       <td width="85px" bgcolor="#000000" align="right">
> >         <xsl:element name="a">
> >           <xsl:attribute name="class">menu</xsl:attribute>
> >           <xsl:attribute name="href"><xsl:value-of select="@link"/></xsl:attribute>
> >           <xsl:attribute
> > name="onMouseOver">changeImage('gtop','images/menu_group_top_sel.gif');</xsl:attribute>
> >           <xsl:attribute
> > name="onMouseOut">changeImage('gtop','images/menu_group_top_unsel.gif');</xsl:attribute>
> >           <xsl:attribute name="onMouseDown">blurFocus(this);</xsl:attribute>
> >           <xsl:value-of select="@title"/>
> >         </xsl:element>
> >       </td>
> >       <td width="13px" background="images/menu_right_sub.gif">
> >         <xsl:element name="img">
> >           <xsl:attribute name="name">gtop</xsl:attribute>
> >           <xsl:attribute name="src">images/menu_group_top_unsel.gif</xsl:attribute>
> >           <xsl:attribute name="width">13</xsl:attribute>
> >           <xsl:attribute name="height">19</xsl:attribute>
> >         </xsl:element>
> >       </td>
> >       <td width="26px"/>
> >     </tr>
> >     <xsl:apply-templates select="item" mode="group"/>
> >     <tr>
> >       <td width="16px"/>
> >       <td width="98px" align="right" colspan="2">
> >         <img src="images/menu_sep.gif" width="98" height="6"/>
> >       </td>
> >       <td width="26px"/>
> >     </tr>
> >   </xsl:template>
> > 
> >   <xsl:template match="item" mode="group">
> >     <tr>
> >       <td colspan="2" width="101px"><img href="images/transp.gif" width="101"
height="2"/></td>
> >       <td width="13px" background="images/menu_right_sub.gif"/>
> >       <td width="26px"/>
> >     </tr>
> >     <xsl:choose>
> >       <xsl:when test="position()=last()">
> >         <tr valign="top">
> >           <td width="16px"/>
> >           <td width="85px" bgcolor="#000000" align="right">
> >             <xsl:element name="a">
> >               <xsl:attribute name="class">group</xsl:attribute>
> >               <xsl:attribute name="href"><xsl:value-of select="@link"/></xsl:attribute>
> >               <xsl:attribute
> > name="onMouseOver">changeImage('gbot','images/menu_group_bot_sel.gif');</xsl:attribute>
> >               <xsl:attribute
> > name="onMouseOut">changeImage('gbot','images/menu_group_bot_unsel.gif');</xsl:attribute>
> >               <xsl:attribute name="onMouseDown">blurFocus(this);</xsl:attribute>
> >               <xsl:value-of select="@title"/>
> >             </xsl:element>
> >           </td>
> >           <td width="13px" valign="bottom" background="images/menu_right_sub.gif">
> >             <xsl:element name="img">
> >               <xsl:attribute name="name">gbot</xsl:attribute>
> >               <xsl:attribute name="src">images/menu_group_bot_unsel.gif</xsl:attribute>
> >               <xsl:attribute name="width">13</xsl:attribute>
> >               <xsl:attribute name="height">19</xsl:attribute>
> >             </xsl:element>
> >           </td>
> >           <td width="26px"/>
> >         </tr>
> >       </xsl:when>
> >       <xsl:otherwise>
> >         <tr valign="top">
> >           <td width="16px"/>
> >           <td width="85px" bgcolor="#000000" align="right">
> >             <xsl:element name="a">
> >               <xsl:attribute name="class">group</xsl:attribute>
> >               <xsl:attribute name="href"><xsl:value-of select="@link"/></xsl:attribute>
> >               <xsl:attribute name="onMouseOver">changeImage('g<xsl:number
value="position()"
> > format="01"/>','images/menu_group_sel.gif');</xsl:attribute>
> >               <xsl:attribute name="onMouseOut">changeImage('g<xsl:number
value="position()"
> > format="01"/>','images/menu_group_unsel.gif');</xsl:attribute>
> >               <xsl:attribute name="onMouseDown">blurFocus(this);</xsl:attribute>
> >               <xsl:value-of select="@title"/>
> >             </xsl:element>
> >           </td>
> > 
> === message truncated ===
> 
> 
> =====
> Davanum Srinivas, JNI-FAQ Manager
> http://www.jGuru.com/faq/JNI
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Messenger - Talk while you surf!  It's FREE.
> http://im.yahoo.com/


--------------------------------------------------------------------------------


> <?xml version="1.0"?>
> 
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> 
> <!-- =========================== Components ================================ -->
> 
>  <map:components>
> 
>   <map:generators default="file">
>    <map:generator  name="file"        src="org.apache.cocoon.generation.FileGenerator"
label="content"/>
>    <map:generator  name="directory"   src="org.apache.cocoon.generation.DirectoryGenerator"
label="content"/>
>    <map:generator  name="serverpages" src="org.apache.cocoon.generation.ServerPagesGenerator"
label="content"/>
>    <map:generator  name="request"     src="org.apache.cocoon.generation.RequestGenerator"/>
>    <map:generator  name="status"      src="org.apache.cocoon.generation.StatusGenerator"/>
>   </map:generators>
> 
>   <map:transformers default="xslt">
>    <map:transformer     name="xslt"      src="org.apache.cocoon.transformation.XalanTransformer">
>     <compile-stylesheets map:value="true"/>
>    </map:transformer>
>    <map:transformer     name="log"       src="org.apache.cocoon.transformation.LogTransformer"/>
>    <map:transformer     name="sql"       src="org.apache.cocoon.transformation.SQLTransformer"/>
>    <map:transformer     name="xinclude"  src="org.apache.cocoon.transformation.XIncludeTransformer"/>
>   </map:transformers>
> 
>   <map:readers default="resource">
>    <map:reader name="resource"       src="org.apache.cocoon.reading.ResourceReader"/>
>   </map:readers>
> 
>   <map:serializers default="html">
>    <map:serializer name="links"                               src="org.apache.cocoon.serialization.LinkSerializer"/>
>    <map:serializer name="xml"    mime-type="text/xml"         src="org.apache.cocoon.serialization.XMLSerializer"/>
>    <map:serializer name="html"   mime-type="text/html"        src="org.apache.cocoon.serialization.HTMLSerializer"/>
>    <map:serializer name="fo2pdf" mime-type="application/pdf"  src="org.apache.cocoon.serialization.FOPSerializer"/>
>    <map:serializer name="vrml"   mime-type="model/vrml"       src="org.apache.cocoon.serialization.TextSerializer"/>
>    <map:serializer name="wap"    mime-type="text/vnd.wap.wml" src="org.apache.cocoon.serialization.XMLSerializer">
>     <doctype-public>-//WAPFORUM//DTD WML 1.1//EN</doctype-public>
>     <doctype-system>http://www.wapforum.org/DTD/wml_1.1.xml</doctype-system>
>    </map:serializer>
>    <map:serializer name="svgxml" mime-type="image/svg-xml"    src="org.apache.cocoon.serialization.XMLSerializer">
>     <doctype-public>-//W3C//DTD SVG 20000303 Stylable//EN</doctype-public>
>     <doctype-system>http://www.w3.org/TR/2000/03/WD-SVG-20000303/</doctype-system>
>    </map:serializer>
>    <map:serializer name="svg2jpeg" mime-type="image/jpeg"     src="org.apache.cocoon.serialization.SVGSerializer">
>     <encoder>jpegencoder</encoder>
>     <transparent>false</transparent>
>     <background>#FFFFFF</background>
>    </map:serializer>
>   </map:serializers>
> 
>   <map:selectors default="browser">
>    <map:selector name="browser" factory="org.apache.cocoon.selection.BrowserSelectorFactory">
>     <!-- # NOTE: The appearance indicates the search order. This is very important
since
>          #       some words may be found in more than one browser description. (MSIE
is
>          #       presented as "Mozilla/4.0 (Compatible; MSIE 4.01; ...")
>     -->
>     <browser name="explorer" useragent="MSIE"/>
>     <browser name="pocketexplorer" useragent="MSPIE"/>
>     <browser name="handweb" useragent="HandHTTP"/>
>     <browser name="avantgo" useragent="AvantGo"/>
>     <browser name="imode" useragent="DoCoMo"/>
>     <browser name="opera" useragent="Opera"/>
>     <browser name="lynx" useragent="Lynx"/>
>     <browser name="java" useragent="Java"/>
>     <browser name="wap" useragent="Nokia"/>
>     <browser name="wap" useragent="UP"/>
>     <browser name="wap" useragent="Wapalizer"/>
>     <browser name="mozilla5" useragent="Mozilla/5"/>
>     <browser name="mozilla5" useragent="Netscape6/"/>
>     <browser name="netscape" useragent="Mozilla"/>
>    </map:selector>
> 
>   </map:selectors>
> 
>   <map:matchers default="uri">
>    <map:matcher name="uri"        factory="org.apache.cocoon.matching.WildcardURIMatcherFactory"/>
>    <map:matcher name="uri-regexp" factory="org.apache.cocoon.matching.RegexpURIMatcherFactory"/>
>   </map:matchers>
> 
>  </map:components>
> 
> <!-- =========================== Views =================================== -->
> 
>  <map:views>
>   <map:view name="content" from-label="content">
>    <map:serialize type="xml"/>
>   </map:view>
> 
>   <map:view name="links" from-position="last">
>    <map:serialize type="links"/>
>   </map:view>
> 
>  </map:views>
> <!-- =========================== Resources ================================= -->
> 
>  <map:resources>
>   <map:resource name="slides">
>    <map:generate src="docs/samples/slides/slides.xml"/>
>    <map:transform src="stylesheets/slides/slides-navigation.xsl"/>
>    <map:transform src="stylesheets/slides/slides-apachecon.xsl"/>
>    <map:serialize/>
>   </map:resource>
>  </map:resources>
> 
> <!-- =========================== Pipelines ================================= -->
> 
>  <map:pipelines>
>   <map:pipeline>
> 
>    <map:match pattern="">
>     <map:redirect-to uri="welcome"/>
>    </map:match>
> 
>    <map:match pattern="welcome">
>     <map:generate src="docs/samples/samples.xml"/>
>     <map:transform src="stylesheets/simple-samples2html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <!-- ================  Hello  =========================== -->
> 
>    <map:match pattern="hello.html">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="stylesheets/page/simple-page2html.xsl"/>
>     <map:serialize type="html"/>
>    </map:match>
> 
>    <map:match pattern="hello.wml">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="stylesheets/page/simple-page2wml.xsl"/>
>     <map:serialize type="wap"/>
>    </map:match>
> 
>    <map:match pattern="hello.vml">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="stylesheets/page/simple-page2vml.xsl"/>
>     <map:serialize type="xml"/>
>    </map:match>
> 
>    <map:match pattern="hello.svg">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="stylesheets/page/simple-page2svg.xsl"/>
>     <map:serialize type="svg2jpeg"/>
>    </map:match>
> 
>    <map:match pattern="hello.wrl">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="stylesheets/page/simple-page2vrml.xsl"/>
>     <map:serialize type="vrml"/>
>    </map:match>
> 
>    <map:match pattern="hello.pdf">
>     <map:generate src="docs/samples/hello-page.xml"/>
>     <map:transform src="stylesheets/page/simple-page2fo.xsl"/>
>     <map:serialize type="fo2pdf"/>
>    </map:match>
> 
>    <!-- ================  Sites  =========================== -->
> 
>    <map:match pattern="sites/*.apache.org">
>     <map:generate src="docs/samples/sites/{1}_apache_org.xml"/>
>     <map:transform src="stylesheets/sites/{1}_apache_org-html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="sites/images/*.gif">
>     <map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
>    </map:match>
> 
>    <!-- ================  Static  =========================== -->
> 
>    <map:match pattern="fo">
>     <map:generate src="docs/samples/fo/readme.fo"/>
>     <map:serialize type="fo2pdf"/>
>    </map:match>
> 
>    <map:match pattern="svg">
>     <map:generate src="docs/samples/opac.svg"/>
>     <map:serialize type="svg2jpeg"/>
>    </map:match>
> 
>    <map:match pattern="slides/slides">
>     <map:redirect-to resource="slides"/>
>    </map:match>
> 
>    <map:match pattern="slides/view-source/*">
>     <map:read src="docs/samples/slides/{1}" mime-type="text/plain"/>
>    </map:match>
>    
>    <map:match pattern="slides/view-source">
>     <map:generate type="serverpages" src="docs/samples/slides/view-source.xsp"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="slides/">
>     <map:redirect-to resource="slides"/>
>    </map:match>
> 
>    <map:match pattern="slides/style">
>     <map:read src="resources/styles/slides-apachecon.css" mime-type="text/css"/>
>    </map:match>
> 
>    <map:match pattern="slides/**.gif">
>     <map:read src="docs/samples/{1}.gif" mime-type="image/gif"/>
>    </map:match>
> 
>    <map:match pattern="slides/**.jpg">
>     <map:read src="docs/samples/{1}.jpg" mime-type="image/jpg"/>
>    </map:match>
> 
>    <map:match pattern="slides/**.png">
>     <map:read src="docs/samples/{1}.png" mime-type="image/png"/>
>    </map:match>
> 
>    <map:match pattern="xsp/*">
>     <map:generate type="serverpages" src="docs/samples/xsp/{1}.xsp"/>
>     <map:transform src="stylesheets/dynamic-page2html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="sql/*">
>     <map:generate src="docs/samples/sql/{1}.xml"/>
>     <map:transform type="sql">
>       <parameter name="driver"   value="org.gjt.mm.mysql.Driver"/>
>       <parameter name="dburl"    value="jdbc:mysql://localhost/test"/>
>       <parameter name="username" value="test"/>
>       <parameter name="password" value="test"/>
>     </map:transform>
>     <map:transform src="stylesheets/simple-sql2html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="generror">
>     <map:generate src="docs/samples/error-giving-page.xml"/>
>     <map:transform src="stylesheets/simple-samples2html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="status">
>     <map:generate type="status" src="status"/>
>     <map:transform src="stylesheets/system/status2html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="sites/styles/**.css">
>     <map:read src="resources/styles/{1}.css" mime-type="text/css"/>
>    </map:match>
> 
>    <map:match pattern="resources/**.css">
>     <map:read src="resources/{1}.css" mime-type="text/css"/>
>    </map:match>
> 
>    <map:match pattern="resources/**.js">
>     <map:read src="resources/{1}.js" mime-type="text/javascript"/>
>    </map:match>
> 
>    <map:match pattern="images/**.gif">
>     <map:read src="resources/images/{1}.gif" mime-type="image/gif"/>
>    </map:match>
> 
>    <map:match pattern="images/**.jpg">
>     <map:read src="resources/images/{1}.jpg" mime-type="image/jpg"/>
>    </map:match>
> 
>    <map:match pattern="images/**.png">
>     <map:read src="resources/images/{1}.png" mime-type="image/png"/>
>    </map:match>
> 
>    <map:match pattern="*">
>     <map:generate type="directory" src="{1}"/>
>     <map:transform src="stylesheets/system/directory2html.xsl"/>
>     <map:serialize/>
>    </map:match>
> 
>    <map:handle-errors>
>     <map:transform src="stylesheets/system/error2html.xsl"/>
>     <map:serialize status-code="500"/>
>    </map:handle-errors>
> 
>   </map:pipeline>
>  </map:pipelines>
> 
> </map:sitemap>
> 
> <!-- end of file -->
> 


Mime
View raw message