Versions of Resources

Server which supports Versioning and Workflow

<introspection xmlns="http://www.wyona.org/neutron/2.0">
  <resource name="Homepage">
    <edit mime-type="application/xhtml+xml">
      <open url="index.xhtml" method="GET"/>
      <save url="index.xhtml?yanel.resource.usecase=save" method="POST"/>
    </edit>

    <versions>
      <version url="index.xhtml?yanel.resource.revision=20843">
        <comment>slugline updated</comment>
        <date>2006-05-23T00:38:05+02:00</date>
        <user>joe</user>
        <revision>20843</revision>
        <workflow>
          <state date="2006.12.14">REVIEW</state>
          <transitions>
            <transition id="publish" to="LIVE" url="index.xhtml?yanel.resource.workflow.transition=publish" method="POST">
              <description xml:lang="en">Publish</description>
              <description xml:lang="de">Publizieren</description>
            </transition>
            <transition id="publish-and-notify" to="LIVE" url="index.xhtml?yanel.resource.workflow.transition=publish" method="POST">
              <description xml:lang="en">Publish and notify</description>
            </transition>
            <transition id="reject" to="DRAFT"/>
          </transitions>
          <history>
            <state date="2006.12.13">DRAFT</state>
          </history>
        </workflow>
      </version>
      <version url="index.xhtml?yanel.resource.revision=20840">
        <comment>slugline updated</comment>
        <date>2006-05-22T03:38:05+02:00</date>
        <user>joe</user>
        <revision>20843</revision>
        <workflow>
          <state date="2006.12.14">DRAFT</state>
          <transitions>
            <transition id="submit-to-review" to="REVIEW" url="?yanel.resource.workflow.transition=submit-to-review" method="POST"/>
          </transitions>
          <history>
            <state date="2006.12.12">DRAFT</state>
          </history>
        </workflow>
      </version>
      <version url="index.xhtml?yanel.resource.revision=20023">
        <comment>title changed<comment>
        <revision>20023</revision>
        <workflow>
          <state date="2006.12.13">LIVE</state>
          <history>
            <state date="2006.12.11">REVIEW</state>
            <state date="2006.12.10">DRAFT</state>
          </history>
        </workflow>
      </version>
    </versions>
  </resource>
</introspection>

Date Format must be ISO-8601

Server which supports Versioning and Workflow (but only for the latest revision)

<introspection xmlns="http://www.wyona.org/neutron/2.0">
  <resource name="Homepage">
    <edit mime-type="application/xhtml+xml">
      <open url="index.xhtml" method="GET"/>
      <save url="index.xhtml?yanel.resource.usecase=save" method="POST"/>
    </edit>

    <versions>
      <version url="index.xhtml?yanel.resource.revision=20843">
        <comment>slugline updated</comment>
        <date>2006-05-23T00:38:05+02:00</date>
        <user>joe</user>
        <revision>20843</revision>
        <workflow>
          <current-status date="2006.12.14">REVIEW</current-status>
          <transitions>
            <transition id="publish" from="REVIEW" to="LIVE" url="index.xhtml?yanel.resource.workflow.transition=publish" method="POST"/>
            <transition id="reject" from="REVIEW" to="AUTHORING"/>
          </transitions>
          <history>
            <status date="2006.12.13">AUTHORING</status>
          </history>
        </workflow>
      </version>
      <version url="index.xhtml?yanel.resource.revision=20840">
        <comment>slugline updated</comment>
        <date>2006-05-22T03:38:05+02:00</date>
        <user>joe</user>
        <revision>20843</revision>
      </version>
      <version url="index.xhtml?yanel.resource.revision=20023">
        <comment>title changed<comment>
        <revision>20023</revision>
      </version>
    </versions>
  </resource>
</introspection>

Server which supports Versioning but no Workflow

<introspection xmlns="http://www.wyona.org/neutron/2.0">
  <resource name="Homepage">
    <edit mime-type="application/xhtml+xml">
      <open url="index.xhtml" method="GET"/>
      <save url="index.xhtml?yanel.resource.usecase=save" method="POST"/>
    </edit>

    <versions>
      <version url="index.xhtml?yanel.resource.revision=20843">
        <comment>slugline updated</comment>
        <date>2006-05-23T00:38:05+02:00</date>
        <user>joe</user>
        <revision>20843</revision>
      </version>
      <version url="index.xhtml?yanel.resource.revision=20840">
        <comment>slugline updated</comment>
        <date>2006-05-22T03:38:05+02:00</date>
        <user>joe</user>
        <revision>20843</revision>
      </version>
      <version url="index.xhtml?yanel.resource.revision=20023">
        <comment>title changed<comment>
        <revision>20023</revision>
      </version>
    </versions>
  </resource>
</introspection>

Server which supports no Versioning but Workflow

<introspection xmlns="http://www.wyona.org/neutron/2.0">
  <resource name="Homepage">
    <edit mime-type="application/xhtml+xml">
      <open url="index.xhtml" method="GET"/>
      <save url="index.xhtml?yanel.resource.usecase=save" method="POST"/>
    </edit>

    <versions>
      <version url="index.xhtml?yanel.resource.revision=20843">
        <workflow>
          <current-status date="2006.12.14">REVIEW</current-status>
          <transitions>
            <transition id="publish" from="REVIEW" to="LIVE" url="index.xhtml?yanel.resource.workflow.transition=publish" method="POST"/>
            <transition id="reject" from="REVIEW" to="AUTHORING"/>
          </transitions>
          <history>
            <status date="2006.12.13">AUTHORING</status>
          </history>
        </workflow>
      </version>
    </versions>
  </resource>
</introspection>

Server which supports no Versioning and no Workflow

<introspection xmlns="http://www.wyona.org/neutron/2.0">
  <resource name="Homepage">
    <edit mime-type="application/xhtml+xml">
      <open url="index.xhtml" method="GET"/>
      <save url="index.xhtml?yanel.resource.usecase=save" method="POST"/>
    </edit>
  </resource>
</introspection>