Title: XML Documents
Author: mitcho (Michael Yoshitaka Erlewine)
Published: <strong>27.05.2011</strong>
Last modified: 31.05.2011

---

Поиск плагинов

Этот плагин **не тестировался с последними 3 основными выпусками WordPress**. Скорее
всего, он уже не поддерживается и может быть несовместим с текущими версиями 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://ru.wordpress.org/plugins/xml-documents/#description)
 * [Отзывы](https://ru.wordpress.org/plugins/xml-documents/#reviews)
 *  [Установка](https://ru.wordpress.org/plugins/xml-documents/#installation)
 * [Разработка](https://ru.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).

## Часто задаваемые вопросы

  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://ru.wordpress.org/plugins/tags/cpt/)[custom post type](https://ru.wordpress.org/plugins/tags/custom-post-type/)
   [tei](https://ru.wordpress.org/plugins/tags/tei/)[xml](https://ru.wordpress.org/plugins/tags/xml/)
   [xslt](https://ru.wordpress.org/plugins/tags/xslt/)
 *  [Дополнительно](https://ru.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/)