內容簡介
Paloose 是使用 PHP5 簡化版的 Cocoon。原版是一個與 Apache 合作的簡單服務器,可以讓 Cocoon 環境與 PHP5 一起使用。除非作為極為昂貴的“專業版”外,幾乎沒有提供 Cocoon 所需的 Java/Tomcat 的 ISP。幾乎所有 ISP 都支持 PHP5(抱歉,Paloose 不支持 PHP4),我一直使用 Paloose,發現在除了最複雜的網站之外,Paloose 都是 Cocoon 的一個很好的替代品。Paloose 還可以鼓勵其他人開始使用 XML 和 XSL,而無需使用額外的組件,例如 Tomcat、Jetty 或完整的 Cocoon 安裝。
請注意,Paloose 所基於的技術不適合用於非常大的網站。如果您需要性能,請升級到 Cocoon,更新服務器帳號的額外花費大概在整個大型網站的成本中不會引起注意。然而,在 PHP 環境中嘗試 XML 和 XSL 想法的能力是非常有用的。
Paloose 的 WordPress 客戶端插件允許後者查詢基於 XML 的檔案系統並將其與正常的 WordPress 頁面集成。還有一些非 XML 轉換(例如 GEDCOM),並且撰寫自己的擴展到 Paloose 是相當容易的。 Paloose 的客戶端和服務器版是相同的,僅在插件內的包裝器代碼不同。
有關更多信息,請訪問 Paloose 項目頁面。歡迎留言。
使用手冊
簡而言之,您需要插入以下格式的模板標籤:
<?php echo paloose(<page_required>,<query_string>);?>
但是,在開始之前,您需要了解 Paloose 會對此進行什麼處理。請参考Paloose 這裡的文檔,特別是Paloose WordPress 示例。
外掛標籤
開發者團隊
原文外掛簡介
Paloose is a simplified version of Cocoon using PHP5. The original was a simple server working with Apache
to allow a Cocoon environment to be used with PHP5. There are very few ISPs who will
support Java/Tomcat for web sites which Cocoon requires, other than as a very
expensive “professional” addition. Almost all will support PHP5 (sorry, Paloose does not use PHP4) and I have
been using Paloose for some time now and have always found it a good substitute for Cocoon in
all but the most complex sites. Paloose may also encourage others to start using XML and XSL
without having to use extra bits such as Tomcat, Jetty or a full Cocoon installation.
Please note that the technology underlying Paloose does not make it suitable for very large sites. If you
need performance then upgrade to Cocoon — the extra expense of an updated server account
will probably be unnoticeable in the overall cost of
a large site anyway. However, having the ability to try out XML and XSL ideas in a PHP environment with a
subset of Cocoon is very useful.
The Paloose client plugin for WordPress allows the latter to interrogate XML based file systems and integrate them with
normal WordPress pages. There also some non-XML transforms (for example GEDCOM) and it is fairly easy to write
your own extensions to Paloose. The client and server versions of Paloose are identical with only the
wrapper code within the plugin being different.
For more information, visit the Paloose project page. All comments appreciated.
Usage Manual
Briefly you insert a template tag of the form
,
However you need to understand what Paloose will do with this before you start.
Consult the Paloose documentation here
and especially the Paloose WordPress Example.
