cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kpiroum...@apache.org
Subject cvs commit: xml-cocoon2/src/webapp/samples/i18n site2html.xsl
Date Thu, 30 May 2002 13:13:17 GMT
kpiroumian    02/05/30 06:13:17

  Modified:    src/webapp/samples/i18n site2html.xsl
  Log:
  Corrected links to samples and main pages
  
  Revision  Changes    Path
  1.4       +1 -1      xml-cocoon2/src/webapp/samples/i18n/site2html.xsl
  
  Index: site2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/webapp/samples/i18n/site2html.xsl,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- site2html.xsl	27 Apr 2002 09:42:13 -0000	1.3
  +++ site2html.xsl	30 May 2002 13:13:17 -0000	1.4
  @@ -1 +1 @@
  -<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:param name="locale" />
    <xsl:param name="page" />

    <xsl:template
match="site">
        <html>
            <head>
                <title>
                   <xsl:value-of select="page/title" />
                </title>
               <link rel="stylesheet" href="page.css" type="text/css"/>
           
</head>
            <body>
                <table class="path">
       
            <tr>
                        <td>
                            <!--
FIXME (KP): remove 'welcome' when solved redirection problem  -->
                    
       <a href="../../welcome">Apache Cocoon Main</a>&#160;&gt;&#160;<a
href="../welcome">Samples</a>&#160;&gt;&#160;<span class="current">Internationalization
(i18n) and Localization (l10n)</span>                        
                     
  </td>
                    </tr>
                </table>            
               <table class="topline"><tr><td>&#160;</td></tr></table>
               <table cellspacing="0" cellpadding="0" summary="content pane">
     
              <tr>
                        <td width="5" class="navbar">&#160;</td>
                       <td rowspan="2" valign="top" nowrap="nowrap" width="300">
  
                         <xsl:apply-templates select="table[@class='menu']"/>
     
                  </td>
                        <td valign="top" class="navbar" align="left">
                           Locale: <xsl:value-of select="$locale" />
              
         </td>
                        <td width="*" valign="top" class="navbar"
align="right">
                            Page: <xsl:value-of select="$page" />
                       </td>
                    </tr>
                    <tr>
                       <td>&#160;</td>
                        <td class="content"
valign="top" colspan="2">
                            <xsl:apply-templates select="page"/>
                       </td>
                    </tr>
                </table>
               <table>
                    <tr>
                        <td
class="copyright">
                            Copyright (c) 1999-2002 <a href="http://www.apache.org/">Apache
Software Foundation</a>. All Rights Reserved.
                        </td>
 
                  </tr>
                </table>
            </body>
  
     </html>
    </xsl:template>
    
    <xsl:template match="node()|@*" priority="-1">
       <xsl:copy>
            <xsl:apply-templates select="@*"/>
            <xsl:apply-templates/>
       </xsl:copy>
    </xsl:template>
    
</xsl:stylesheet>
  \ No newline at end of file
  +<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:param name="locale" />
    <xsl:param name="page" />

    <xsl:template
match="site">
        <html>
            <head>
                <title>
                   <xsl:value-of select="page/title" />
                </title>
               <link rel="stylesheet" href="page.css" type="text/css"/>
           
</head>
            <body>
                <table class="path">
       
            <tr>
                        <td>
                            <a
href="../../">Apache Cocoon Main</a>&#160;&gt;&#160;<a href="../">Samples</a>&#160;&gt;&#160;<span
class="current">Internationalization (i18n) and Localization (l10n)</span>      
                 
                        </td>
                    </tr>
   
            </table>            
                <table class="topline"><tr><td>&#160;</td></tr></table>
               <table cellspacing="0" cellpadding="0" summary="content pane">
     
              <tr>
                        <td width="5" class="navbar">&#160;</td>
                       <td rowspan="2" valign="top" nowrap="nowrap" width="300">
  
                         <xsl:apply-templates select="table[@class='menu']"/>
     
                  </td>
                        <td valign="top" class="navbar" align="left">
                           Locale: <xsl:value-of select="$locale" />
              
         </td>
                        <td width="*" valign="top" class="navbar"
align="right">
                            Page: <xsl:value-of select="$page" />
                       </td>
                    </tr>
                    <tr>
                       <td>&#160;</td>
                        <td class="content"
valign="top" colspan="2">
                            <xsl:apply-templates select="page"/>
                       </td>
                    </tr>
                </table>
               <table>
                    <tr>
                        <td
class="copyright">
                            Copyright (c) 1999-2002 <a href="http://www.apache.org/">Apache
Software Foundation</a>. All Rights Reserved.
                        </td>
 
                  </tr>
                </table>
            </body>
  
     </html>
    </xsl:template>
    
    <xsl:template match="node()|@*" priority="-1">
       <xsl:copy>
            <xsl:apply-templates select="@*"/>
            <xsl:apply-templates/>
       </xsl:copy>
    </xsl:template>
    
</xsl:stylesheet>
  \ No newline at end of file
  
  
  

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