Title: XML Documents
Author: mitcho (Michael Yoshitaka Erlewine)
Published: <strong>2011年5月27日</strong>
Last modified: 2011年5月31日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

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

# XML Documents

 作者: [mitcho (Michael Yoshitaka Erlewine)](https://profiles.wordpress.org/mitchoyoshitaka/)

[ダウンロード](https://downloads.wordpress.org/plugin/xml-documents.0.2.zip)

 * [詳細](https://ja.wordpress.org/plugins/xml-documents/#description)
 * [レビュー](https://ja.wordpress.org/plugins/xml-documents/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/xml-documents/#installation)
 * [開発](https://ja.wordpress.org/plugins/xml-documents/#developers)

 [サポート](https://wordpress.org/support/plugin/xml-documents/)

## 説明

This plugin adds the necessary infrastructure to add a “XML Document”-type custom
post type which renders an XML document with an XSLT stylesheet in lieu of the regular
post content. This can be useful in custom applications where there is a need to
display XML documents from source, but you also want the regular benefits of WordPress
tagging, commenting, etc. for these documents.

This plugin will not work out of the box… it is an infrastructure plugin. Additional
coding (albeit minor) is necessary to get it running. See the “Installation” section
for more information and sample code.

The development of this plugin is supported by [MIT Global Shakespeares](http://globalshakespeares.org),
where it will be used to render the full text of Shakespeare plays from TEI-XML 
source.

### To-do

 * Custom stylesheets, per-document and/or custom parameters to be passed to the
   XSL transform
 * Search integration

## スクリーンショット

 * [[
 * A custom post type with XML Document support: here, “Scripts” for the display
   of Shakespeare scripts.
 * [[
 * Selecting an uploaded XML Document as the document to be rendered.

## インストール

 1. Make sure you have PHP5 and [the PHP XSL module](http://us3.php.net/xsl) installed.
 2. Install and activate this plugin.
 3. Create a new custom post type with the `supports` attribute `xmldoc`. This custom
    post type will completely ignore its `post_content`, so make sure its `supports`
    statement does not include `editor`.
 4. Place your stylesheet in your current theme’s directory, named as `stylesheet.xsl`.
 5. Create a new entity of your new post type. There will be an option to upload and
    choose an XML document (see screenshots). Do that, publish it, and view it, and
    you will see the XML document rendered with the XSLT as the content of that entry.

Here’s some sample code:

    ```
    register_post_type('script',
        array(
            'label' => 'Scripts',
            'public' => true,
            'hierarchical' => false,
            'supports' => array('title', 'comments', 'xmldoc')
        )
    );
    ```

For more information on `register_post_type` and Custom Post Types, [visit the Codex](https://codex.wordpress.org/Post_Types).

## FAQ

  Your question here!

Our answer here!

## 評価

このプラグインにはレビューがありません。

## 貢献者と開発者

XML Documents はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献
しています。

貢献者

 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)

[“XML Documents” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/xml-documents)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/xml-documents/)するか、
[SVN リポジトリ](https://plugins.svn.wordpress.org/xml-documents/)をチェックする
か、[開発ログ](https://plugins.trac.wordpress.org/log/xml-documents/)を [RSS](https://plugins.trac.wordpress.org/log/xml-documents/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.2

 * A couple bugfixes for the admin interface.

#### 0.1

 * Initial public release.

## メタ

 *  バージョン **0.2**
 *  最終更新日 **15年前**
 *  有効インストール数 **10+**
 *  WordPress バージョン ** 3.1またはそれ以降 **
 *  検証済み最新バージョン: **3.2.1**
 *  言語
 * [English (US)](https://wordpress.org/plugins/xml-documents/)
 * タグ
 * [cpt](https://ja.wordpress.org/plugins/tags/cpt/)[custom post type](https://ja.wordpress.org/plugins/tags/custom-post-type/)
   [tei](https://ja.wordpress.org/plugins/tags/tei/)[xml](https://ja.wordpress.org/plugins/tags/xml/)
   [xslt](https://ja.wordpress.org/plugins/tags/xslt/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/xml-documents/advanced/)

## 評価

レビューはまだ送信されていません。

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

[すべてのレビューを見る](https://wordpress.org/support/plugin/xml-documents/reviews/)

## 貢献者

 *   [ mitcho (Michael Yoshitaka Erlewine) ](https://profiles.wordpress.org/mitchoyoshitaka/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/xml-documents/)