cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michel Erard <er...@hta-bi.bfh.ch>
Subject Problem with stylesheets
Date Mon, 04 Apr 2005 14:54:33 GMT
Hello,

I've tried to aggregate the multi-page-form example into an existing 
application. Now I've the problem, that my styles.css file isnt found 
any longer and it doesn't add the javascripts for the popups from matt 
kruse to the page.

Does somebody see my fault?

Thanks

Mike

-------------------------------------------------------------
Pipelines:

<map:pipelines>
 
 <map:pipeline type="noncaching" internal-only="true">
         <map:act type="locale">
            <map:match pattern="*.form">
               <map:aggregate element="document">
                  <map:part src="cocoon:/info/{1}" />
                  <map:part src="cocoon:/header/{1}" />
                  <map:part src="cocoon:/menu/{1}" />
                  <map:part src="cocoon:/form/{1}" />
               </map:aggregate>

           <!--map:transform type="xalan" src="stylesheets/layout.xsl" /-->
               <map:transform type="forms"/>
               <map:transform type="xalan" 
src="resources/forms-samples-styling.xsl" />
           <map:transform type="xalan" 
src="resources/forms-advanced-field-styling.xsl" />
            
               <map:serialize type="xhtml" />
            </map:match>

            <map:match pattern="info/*">
               <map:generate type="serverpages" src="forms/info/info.xsp">
                  <map:parameter name="context" value="{1}" />
               </map:generate>
               <map:serialize type="xml" />
            </map:match>

            <map:match pattern="header/*">
               <map:generate type="serverpages" src="forms/menus/hmenu.xsp">
                  <map:parameter name="context" value="{1}" />
               </map:generate>
               <map:serialize type="xml" />
            </map:match>

            <map:match pattern="menu/*">
               <map:generate type="serverpages" src="forms/menus/vmenu.xsp">
                  <map:parameter name="context" value="{1}" />
               </map:generate>
               <map:serialize type="xml" />
            </map:match>

            <map:match pattern="form/*">
               <map:generate src="forms/multipage_template.xml"/>
               <map:serialize type="xml" />
            </map:match>
         </map:act>
      </map:pipeline>
  
   <map:pipeline>

     <map:match pattern="do-*.flow">
       <map:call function="do_{1}"/>
     </map:match>

     <map:match pattern="*.continue">
       <map:call continuation="{1}"/>
     </map:match>

     <map:match pattern="resources/**">
       <map:read src="{0}"/>
     </map:match>  

    <map:match pattern="*">
        <map:redirect-to uri="{1}/"/>
    </map:match>

    <map:match pattern="*/**">
     <map:mount check-reload="yes" src="{1}/" uri-prefix="{1}"/>
   </map:match>

   </map:pipeline>

   <map:pipeline type="caching" internal-only="false">
         <map:match pattern="images/*.gif">
            <map:read mime-type="images/gif" src="images/{1}.gif" />
         </map:match>
         <map:match pattern="images/*.jpg">
            <map:read mime-type="images/jpeg" src="images/{1}.jpg" />
         </map:match>
         <map:match pattern="styles/*.css">
            <map:read mime-type="text/css" src="styles/{1}.css" />
         </map:match>
         <map:match pattern="scripts/*.js">
            <map:read mime-type="text/javascript" src="scripts/{1}.js" />
         </map:match>
   </map:pipeline>

 </map:pipelines>


-------------------------------------------------------------
layout.xsl:

   <xsl:template match="/">
      <xsl:apply-templates />
   </xsl:template>
 
   <xsl:template match="document">
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
         <head>
            <title>Elquerito</title>
            <meta http-eqoiv="Content-Type" content="text/html; 
charset=ISO-8859-1" />
            <meta http-eqoiv="Content-Script-Type" 
content="text/javascript" />
            <link rel="stylesheet" type="text/css" 
href="styles/styles.css" />
            <script type="text/javascript" language="Javascript1.5" 
src="scripts/main.js">;</script>
         </head>
 
         <body>
            <table summary="" border="0" class="main" cellpadding="0" 
cellspacing="0">
               <tr>
                  <td style="background-image: url( 'images/logo.gif' ); 
height: 66px; width: 800px;"/>
                  <td align="right">
                     <table summary="" border="0" cellpadding="0" 
cellspacing="0">
                        <tr nowrap="nowrap" align="right">
                           <td><xsl:copy-of 
select="/document/info/user-id"/></td>
                        </tr>
                        <!--tr nowrap="nowrap" align="right">
                           <td><xsl:copy-of 
select="/document/info/role"/></td>
                        </tr-->
                        <tr nowrap="nowrap" align="right">
                           <td><xsl:copy-of 
select="/document/info/dateTime"/></td>
                        </tr>
                        <tr nowrap="nowrap" align="right">
                           <td><xsl:copy-of 
select="/document/info/version"/></td>
                        </tr>                        
                     </table>
                  </td>
               </tr>
               <xsl:apply-templates />
            </table>
         </body>
      </html>
   </xsl:template>
 
   <xsl:template match="info">
   </xsl:template>
 
   <xsl:template match="header">
      <tr class="menu">
         <td class="hmenu" nowrap="nowrap" colspan="2">
            <xsl:copy-of select="*" />
         </td>
      </tr>
 
      <tr class="page">
         <td colspan="2">
            <table summary="" border="0" cellpadding="0" cellspacing="0">
               <tr>            
               <td class="vmenu">
                  <xsl:copy-of select="/document/menu/*" />
               </td>
      
               <td class="page">
                  <xsl:copy-of select="/document/page/*" />
               </td>
               </tr>
            </table>
         </td>
      </tr>
   </xsl:template>
 
   <xsl:template match="menu">
   </xsl:template>
 
   <xsl:template match="page">
   </xsl:template>
</xsl:stylesheet>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message