[1] [[AtomPub]] の [DFN[[CODE(XMLe)@en[app:[[draft]]]] [[要素]]]]は、
[[成員資源]]の可視性に関する[[クライアント]]の要求を表します。
[SRC@en[[[AtomPub]]]]

:[[局所名]]:[CODE(XMLe)@en[[[draft]]]]
:文脈:[CODE(XMLe)@en[app:[[control]]]] の[[子要素]]として
:[[内容モデル]]:[CODE(XML)@en[[[yes]]]] | [CODE(XML)@en[[[no]]]]
:[[属性]]:

仕様書:
[CITE@en[RFC 5023 - The Atom Publishing Protocol]] ([TIME[2008-11-20 18:52:14 +09:00]] 版) <http://tools.ietf.org/html/rfc5023#section-13.1.1>

* 文脈

[2] この[[要素]]は [CODE(XMLe)@en[app:control]] [[要素]]の[[子要素]]として高々1つ使えます。
[SRC@en[[[AtomPub]]]]

* 内容

[3] この[[要素]]の[[内容]]は次のいずれかでなければ[['''なりません''']]。

:[DFN[[CODE(XML)@en[[[yes]]]]]]:
:[DFN[[CODE(XML)@en[[[no]]]]]]:
[[クライアント]]が当該[[成員資源]]を公衆可視化することを要求していることを示します。
[SRC@en[[[AtomPub]]]]

* 既定値

[5] この[[要素]]が示されていない場合、対応している[[鯖]]は
[CODE(XML)@en[[[no]]]] が指定されたものとして扱わなければ[['''なりません''']]。
[SRC@en[[[AtomPub]]]]

* 処理モデル

[4] [[鯖]]はこの[[要素]]を無視して[['''構いません''']]。
[SRC@en[[[AtomPub]]]]


[FIG(quote)[
[FIGCAPTION[
[6] [CITE[はてなダイアリーAtomPub - Hatena Developer Center]]
([TIME[2016-03-21 10:52:56 +09:00]] 版)
<http://developer.hatena.ne.jp/ja/documents/diary/apis/atom>
]FIGCAPTION]

> はてなダイアリーAtomPubでは、AtomPubで規定されているapp:draft要素を使用しません。はてなダイアリーでは日記エントリと下書きエントリを別々に管理しています。そのため、日記エントリと下書きエントリを一つのコレクションとして扱い、app:draft要素によって下書きかどうかを区別するような構成は不自然になります。むしろ、下書きエントリを日記エントリとして公開するという操作を行う仕組みであるほうが自然であると考え、以下のような方法をとっています。

]FIG]


[FIG(quote)[
[FIGCAPTION[
[7] [CITE@en[Blogger: Atom API Documentation]]
([TIME[2016-03-21 11:05:28 +09:00]] 版)
<https://blogger-developers.googleblog.com/archives/atom-docs.html>
]FIGCAPTION]

> To save an entry as Draft:
> Blogger uses a namespace with an optional element called draft. The only valid children of draft are true and false. If draft is left out of a newly created post, it is assumed to be published. If draft is left out of an edited post then the post's draft status will not change. Here is an example of the syntax:
> <draft xmlns="http://purl.org/atom-blog/ns#">false</draft>

]FIG]


[8] [CITE@en[Developer's Guide: Protocol  |  Blogger  |  Google Developers]]
([TIME[2017-06-07 06:34:37 +09:00]])
<https://developers.google.com/blogger/docs/2.0/developers_guide_protocol>