Title: Paloose XML Processor
Author: hsfr
Published: <strong>2011 年 1 月 21 日</strong>
Last modified: 2012 年 6 月 7 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/paloose-xml-processor.svg)

# Paloose XML Processor

 作者：[hsfr](https://profiles.wordpress.org/hsfr/)

[下载](https://downloads.wordpress.org/plugin/paloose-xml-processor.zip)

 * [详情](https://cn.wordpress.org/plugins/paloose-xml-processor/#description)
 * [评价](https://cn.wordpress.org/plugins/paloose-xml-processor/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/paloose-xml-processor/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/paloose-xml-processor/#developers)

 [支持](https://wordpress.org/support/plugin/paloose-xml-processor/)

## 描述

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](http://www.paloose.org/).
All comments appreciated.

### Usage Manual

Briefly you insert a template tag of the form

<?php echo paloose( <page_required>, <query_string> ); ?>

However you need to understand what Paloose will do with this before you start.

Consult the [Paloose documentation here](http://www.paloose.org/pp/documentation/wordpress.html)
and especially the [Paloose WordPress Example](http://www.paloose.org/pp/examples/wordpress/wordpress.html).

## 安装

Upload the Paloose plugin to your blog, activate it, then configure it via the Settings
Menu in the Dashboard.

## 常见问题

More FAQs can be found on the [Paloose Site](http://www.paloose.org/)..

  What facilities do you intend to add to Paloose?

This is quite a difficult question as I have limited time and am not trying to do
a complete Cocoon
 implementation in PHP5 — a pointless exercise anyway. Now that
I have added a simple (limited) data caching scheme to the pipeline all of what 
I intended to add is complete. I am gradually refining the code and improving the
documentation and comments. I am happy to look at anything that users suggest — 
just EMAIL me at [hsfr@hsfr.org.uk](https://cn.wordpress.org/plugins/paloose-xml-processor/hsfr@hsfr.org.uk?output_format=md).

  Can I use the Paloose logo on my site?

Yes please. I suggest the following “[Powered by Paloose](http://www.paloose.org/poweredByPaloose.png)”

logo or the “[Powered by Paloose (small)](http://www.paloose.org/poweredByPaloose-small.png)”
small logo. Scale it as you feel fit.

  What systems will it run on?

Basically any system that will run PHP5. Currently the list is Mac OS-X, Linux, 
and other similar Unix systems. I also know of
 a system based on Apache 2.0/PHP5
on Windows Server 2003.

  How can I improve the performance of Paloose?

Assuming that you are already using the caching system and want more speed, it is
possible, but at the expense of a little
 effort (and possible obscurity), to tailor
the Paloose code and your own sitemaps and XSL. The implications and method are 
described [here](http://www.paloose.org/documentation/performance-1.html) in more
detail.

  What about caching in Paloose?

I have done considerable work on various ways of caching within Paloose and versions
after 1.3.0 use pipeline data caching on
 certain generators and transformers. I
confess that I am in a quandry over this as the gains from using a cache seem to
be minimal and not really worth the effort except in some key cases — see [my caching discussion](http://www.paloose.org/documentation/caching.html)
for more on this. It is not the end of the story, but more performance increases
will probably come from elsewhere.

  Help! Why am I getting “Class ‘XsltProcessor’ not found” errors

99% of the time this shows that you are running PHP5 without the XML/XSL support
that there should be. Try recompiling PHP5
 with the following configuration parameters
included:

    ```
    --with-xml --with-libxml-dir=&lt;dir path&gt; --with-xsl
    ```

  Help! Why am I getting “Parse error: syntax error, unexpected ‘=’, expecting ‘(‘
in

/../../paloose/lib/Paloose.php on line xx” errors

This means you are still running PHP4. You need to run PHP5. Speak to your ISP to
provide PHP5. The other reason may be that
 your .htaccess file has not been set
properly to use PHP5.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Paloose XML Processor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ hsfr ](https://profiles.wordpress.org/hsfr/)

[帮助将「Paloose XML Processor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/paloose-xml-processor)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/paloose-xml-processor/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/paloose-xml-processor/)，或通过[RSS](https://plugins.trac.wordpress.org/log/paloose-xml-processor/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/paloose-xml-processor/)。

## 更新日志

#### 1.0.1b7

 * Paloose system (1.5.2b5) update.

#### 1.0.1b6

 * Paloose system (1.5.0b3) update to remove spurious logging output in SourceWritingTransformer

#### 1.0.1b5

 * Cured bug in Paloose system (1.5.0b2) that stopped request parameters being recognised

#### 1.0.1b4

 * Naming problem with plugin from earlier local version
 * Included Paloose system which did not happen in earliuer versions

#### 1.0.1b3

 * More minor admin changes

#### 1.0.1b2

 * Minor admin changes

#### 1.0.1b1

 * Changed the calling function to support new Version 1.5.0 of Paloose First release.
   Note that Earlier versions of
    the plugin (1.0.0) will only work with Version
   1.4.x of Paloose. This change was required to allow Paloose to work with multi-
   calls on a single page with Joomla!

#### 1.0.0

 * First release.

## 额外信息

 *  版本 **1.0.1b7**
 *  最后更新：**14 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0.3 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/paloose-xml-processor/)
 * 标签
 * [Cocoon](https://cn.wordpress.org/plugins/tags/cocoon/)[transform](https://cn.wordpress.org/plugins/tags/transform/)
   [xml](https://cn.wordpress.org/plugins/tags/xml/)[xsl](https://cn.wordpress.org/plugins/tags/xsl/)
 *  [高级视图](https://cn.wordpress.org/plugins/paloose-xml-processor/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/paloose-xml-processor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/paloose-xml-processor/reviews/)

## 贡献者

 *   [ hsfr ](https://profiles.wordpress.org/hsfr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/paloose-xml-processor/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.paloose.org/)