home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / QuickReference.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  2.3 KB  |  50 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3.   Copyright 1999-2004 The Apache Software Foundation
  4.  
  5.   Licensed under the Apache License, Version 2.0 (the "License");
  6.   you may not use this file except in compliance with the License.
  7.   You may obtain a copy of the License at
  8.  
  9.       http://www.apache.org/licenses/LICENSE-2.0
  10.  
  11.   Unless required by applicable law or agreed to in writing, software
  12.   distributed under the License is distributed on an "AS IS" BASIS,
  13.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.   See the License for the specific language governing permissions and
  15.   limitations under the License.
  16. -->
  17. <html xmlns:osm="http://osmosis.gr/osml/1.0">
  18.   <head>
  19.     <osm:pageTitle>
  20.       <osm:text>quick reference</osm:text>
  21.     </osm:pageTitle>
  22.   </head>
  23.   <body contentID="content">
  24.     <p class="title">Quick reference</p>
  25.     <p class="paratitle">Templates - Layout</p>
  26.     <p>home.xhtml | main.xhtml</p>
  27.     <p>XHTML templates for home (welcome) page [home.xhtml] and content pages [main.xhtml]. These files are editable with any xhtml editor (Dreamweaver MX, XML Spy ...)</p>
  28.     <p>Into these files content is placed using "block-copy" and "content-copy" elements</p>
  29.     <p><![CDATA[<osm:block-copy select="blockID"/>]]></p>
  30.     <p><![CDATA[<osm:content-copy select="content"/>]]></p>
  31.     <p class="notes"><![CDATA[i18n and osm namespaces must be declared.]]></p>
  32.     <p>
  33.       <pre><![CDATA[
  34.      <html xmlns="http://www.w3.org/1999/xhtml"
  35.               xmlns:osm="http://osmosis.gr/osml/1.0"
  36.               xmlns:i18n="http://apache.org/cocoon/i18n/2.1">]]></pre>
  37.     </p>
  38.     <p class="paratitle">Content</p>
  39.     <p>Content is coming form blocks or content files</p>
  40.     <p>in /blocks/blocks.xml are block that can be placed in any template file. There can be as many blocks as we want in any place in templates.</p>
  41.     <p>in /c_en (for english) /c_el (for greek) /c_mylanguage, are the content files. Content that will be diplayed is selected from URL.</p>
  42.     <p class="paratitle">i18n</p>
  43.     <p>Two different ways to have multilanguage content.</p>
  44.     <ul>
  45.       <li>Using dictionaries and i18n transformation for small phrases (or words) translation.</li>
  46.       <li>Different content files into /c_{locale} directory for each language.</li>
  47.     </ul>
  48.   </body>
  49. </html>
  50.