cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willy Reinhardt" <wreinha...@novell.com>
Subject Rép. : Velocity and XSL
Date Tue, 03 May 2005 12:39:00 GMT
Hi,

- Why you don't use <xsl:for-each>? (Note for me a mix of both techonolgies look suspect)
- If you want mix both technologies I think you need to:
   a) Generate a mix of html and velocity with xsl
   b) generate html with velocity.
but again it look like very bad.

Willy


>>> christian.tanzmann@t-online.de 03/05/05 13:21 >>>
Hi,
I would combine an XSL File with Velocity Statements but it dont work.
Because the XSL Transformer cant interprete velocity. 
I have following file:

<xsl:template match="site">
    <!-- IncludeTop Begin -->
	<html>
      <head>
        <title>BLA</title>
      </head>

	  <body bgcolor="#CCCCBB">
        <table border="0" cellspacing="0" cellpadding="5" width="100%">
          <tbody>
            <tr>
              <td bgcolor="#DDDDDD" align="left"><img border="0"
src="images/topLogo.gif" /></td>
            </tr>
          </tbody>
        </table>	
	
      <table border="0" width="100%" bgcolor="#CCCCAA" cellpadding="3">
         <tr>
	       <td>	
             <table border="0" align="center" cellspacing="0"
cellpadding="0" width="150">
               <tbody>
    	         <tr>
    		       <td valign="top"><img
src="images/menu/QH_Seperator.gif" /></td>
-->			   #foreach($i in $quickHeaderMenuList)
-->                    <td>
-->  	                   <a
href="viewQuickHeaderContent.do?quickHeaderMenuID=$i.menuid">
-->                        <img border="0" src="$i.picturesrc"
alt="$i.name"/>
-->                      </a>
-->                   </td>
-->              	    <td valign="top"><img
src="images/menu/QH_Seperator.gif" /></td>
-->	   		   #end
    	             </tr>	
                 </tbody>
               </table>
             </td>
           </tr>
         </table>
	<xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

It is possible that I can use the foreach Velocity Statement in a XSL
File???

Or how can I get the similar with a other solution?

Greets
Christian


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



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


Mime
View raw message