Title: XML Documents
Author: mitcho (Michael Yoshitaka Erlewine)
Published: <strong>27 ພຶດສະພາ 2011</strong>
Last modified: 31 ພຶດສະພາ 2011

---

ຄົ້ນຫາປລັກອິນ

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ 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://lo.wordpress.org/plugins/xml-documents/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/xml-documents/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/xml-documents/#installation)
 * [ການພັດທະນາ](https://lo.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” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນການ
ພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ 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.

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **0.2**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **15 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **10+**
 *  ເວີຊັນ WordPress ** 3.1 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **3.2.1**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/xml-documents/)
 * ແທັກ
 * [cpt](https://lo.wordpress.org/plugins/tags/cpt/)[custom post type](https://lo.wordpress.org/plugins/tags/custom-post-type/)
   [tei](https://lo.wordpress.org/plugins/tags/tei/)[xml](https://lo.wordpress.org/plugins/tags/xml/)
   [xslt](https://lo.wordpress.org/plugins/tags/xslt/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/xml-documents/advanced/)

## ການໃຫ້ຄະແນນ

ຍັງບໍ່ມີການສົ່ງຄຳວິຈານເທື່ອ.

[ເພີ່ມຄຳຄິດເຫັນຂອງຂ້ອຍ](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/)