﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-focus on Open Source CMS-文章分类-OpenCms</title><link>http://www.blogjava.net/hixim/category/16805.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 23 Apr 2007 03:02:40 GMT</lastBuildDate><pubDate>Mon, 23 Apr 2007 03:02:40 GMT</pubDate><ttl>60</ttl><item><title>Opencms响应客户端请求的机制</title><link>http://www.blogjava.net/hixim/articles/84018.html</link><dc:creator>mix</dc:creator><author>mix</author><pubDate>Tue, 28 Nov 2006 04:44:00 GMT</pubDate><guid>http://www.blogjava.net/hixim/articles/84018.html</guid><wfw:comment>http://www.blogjava.net/hixim/comments/84018.html</wfw:comment><comments>http://www.blogjava.net/hixim/articles/84018.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.blogjava.net/hixim/comments/commentRss/84018.html</wfw:commentRss><trackback:ping>http://www.blogjava.net/hixim/services/trackbacks/84018.html</trackback:ping><description><![CDATA[
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">原文：</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<font face="Courier New">
						<span lang="EN-US">When a client requests a page, OpenCms retrieves the contents for the page. This piece of  </span>
						<span lang="EN-US">content is basically the file as it is created through the workplace. At this point, it does </span>
						<span lang="EN-US">not have any layout or navigation. It does, however, have information about how the </span>
						<span lang="EN-US">navigation should look, which template to use, and other such things. OpenCms uses this </span>
						<span lang="EN-US">information to fetch the correct template and place the contents into the template. The </span>
						<span lang="EN-US">template provides the surrounding structure, navigation, and formatting for the document. </span>
						<span lang="EN-US">Once the content has been rendered into the template, the resulting document is shipped </span>
				</font>
				<span lang="EN-US">
						<font face="Courier New">back to the client web browser. <br /></font>
				</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">
						<br />译文（草稿）：</span>
		</p>
		<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt">
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">当客户端请求某个页面的时候，</span>
				<span lang="EN-US">Opencms</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">首先取得将要显示的内容，此时的显示内容没有经过版面设计也没有导航信息，它仅仅是在工作台创建完成的基本文件，但它包含了准备使用的模板信息。</span>
				<span lang="EN-US">Opencms</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">通过该模板信息取出真正的模板，然后将模板和内容组装。模板提供了页面的骨架结构，而内容则成为了页面的血肉。然后</span>
				<span lang="EN-US">Opencms</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">将组装之后的页面返回到</span>
				<span style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">客户端。</span>
		</p>
<img src ="http://www.blogjava.net/hixim/aggbug/84018.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/hixim/" target="_blank">mix</a> 2006-11-28 12:44 <a href="http://www.blogjava.net/hixim/articles/84018.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>