UserPreferences

PaceMinimalSlug


Abstract

Use pub:control element to allow a client to request that a string be included in a new entry's URI

Status

Proposal

Rationale

Many existing weblog software implementations allow clients to request specific URI content entries. APP should also support this capability

Proposal

11.2.2 The "pub:slug" Element

When posting an atom:entry to a collection in order to add a new member, a client may include a pub:slug element. This constitutes a request by the client that the URI assigned to the new resource incorporate string provided in the value of pub:slug. Server implementations MAY attempt to comply with the request.

Server implementations are more likely to be able to incorporate requested strings if they are constructed with sensitivity to URI syntax rules [RFC3986]. In particular, strings containing characters with syntactic significance, in particular the path-separator character "/", are apt to cause server implementations difficulty.

{Add pub:slug to the pub:control definition in section 11.2}

 pubControl =
    element pub:control {
    atomCommonAttributes,
    pubDraft?,
    pubSlug?,
    & extensionElement
 }

 pubDraft =
   element pub:draft { "yes" | "no" }

 pubSlug = 
   element pub:slug { path }

And change the following from 11.2: "The "pub:control" element MAY contain exactly one "pub:draft" element as defined here, and MAY contain zero or more extension elements..." to "The "pub:control" element MAY contain exactly one "pub:draft" element, MAY contain exactly one "pub:slug" element, and MAY contain zero or more extension elements..."

Impacts

Notes


CategoryProposals