PIDF - examples with new priority

"Carr, Wayne" <[email protected]>
Newsgroups gmane.ietf.impp
Message-ID <[email protected]>
I corrected the examples to:
--  use the new priority values
-- consistently use the namespace without the final ";" (some examples in
the draft used the final ":" and some didn't).  The text also needs to
change because it is inconsistent in sometimes using the final ":".

------ Examples below all validate with new schema ------

section 4.2.2a

       <?xml version="1.0" encoding="UTF-8"?>
       <impp:presence xmlns:impp="urn:ietf:params:xml:ns:cpim-pidf" 
           entity="pres:[email protected]">
         <impp:tuple id="mobile-phone">
           <impp:status>
             <impp:basic>open</impp:basic>
           </impp:status>
           <impp:contact priority="0.8">tel:09012345678</impp:contact>
         </impp:tuple>
       </impp:presence>

section 4.2.2b

      <?xml version="1.0" encoding="UTF-8"?>
       <presence xmlns="urn:ietf:params:xml:ns:cpim-pidf"
           entity="pres:[email protected]">
         <tuple id="mobile-phone">
           <status>
             <basic>open</basic>
           </status>
           <contact priority="0.9">tel:09012345678</contact>
         </tuple>
       </presence>

section 4.2.4

       <?xml version="1.0" encoding="UTF-8"?>
       <presence xmlns="urn:ietf:params:xml:ns:cpim-pidf"
           xmlns:local="urn:example-com:pidf-status-type"
           entity="pres:[email protected]">
         <tuple id="im">
           <status>
             <basic>open</basic>
             <local:location>home</local:location>
           </status>
           <contact>im:[email protected]</contact>
         </tuple>
       </presence>

section 4.3.1

 <?xml version="1.0" encoding="UTF-8"?>
   <presence xmlns="urn:ietf:params:xml:ns:cpim-pidf"
         xmlns:im="urn:ietf:params:xml:ns:cpim-pidf:im"
         xmlns:myex="http://id.example.com/cpim-presence/"
         entity="pres:[email protected]">
       <tuple id="mobile-im">
           <status>
               <basic>open</basic>
               <im:im>busy</im:im>
               <myex:location>home</myex:location>
           </status>
           <contact priority="1.0">im:[email protected]</contact>
           <note xml:lang="en">Don't Disturb Please!</note>
           <note xml:lang="fr">Ne derangez pas, s'il vous plait</note>
           <timestamp>2001-10-27T16:49:29Z</timestamp>
       </tuple>
       <tuple id="email">
           <status>
               <basic>open</basic>
           </status>
           <contact priority="0.65">mailto:[email protected]</contact>
       </tuple>
       <note>I'll be in Tokyo next week</note>
   </presence>

section 4.3.2 

   <?xml version="1.0" encoding="UTF-8"?>
   <impp:presence xmlns:impp="urn:ietf:params:xml:ns:cpim-pidf"
         xmlns:myex="http://id.example.com/cpim-presence/"
         entity="pres:[email protected]">
       <impp:tuple id="mobile-phone">
           <impp:status>
               <impp:basic>open</impp:basic>
           </impp:status>
           <myex:mytupleelement>Extended value in
tuple</myex:mytupleelement>
           <impp:contact priority="9">tel:09012345678</impp:contact>
       </impp:tuple>
       <impp:tuple id="mobile-im">
           <impp:status>
               <impp:basic>open</impp:basic>
           </impp:status>
           <impp:contact priority="1">
              im:[email protected]</impp:contact>
       </impp:tuple>
       <myex:mytag>My extended presentity information</myex:mytag>
   </impp:presence>

section 4.3.3

   <?xml version="1.0" encoding="UTF-8"?>
   <impp:presence xmlns:impp="urn:ietf:params:xml:ns:cpim-pidf"
         xmlns:myex="http://id.mycompany.com/cpim-presence/"
         entity="pres:[email protected]">
       <impp:tuple id="mobile-phone">
           <impp:status>
               <impp:basic>open</impp:basic>
           </impp:status>
           <myex:complexExtension impp:mustUnderstand="1">
               <myex:ex1 impp:mustUnderstand="1">val1</myex:ex1>
               <myex:ex2>val2</myex:ex2>
           </myex:complexExtension>
           <impp:contact priority="0.725">tel:09012345678</impp:contact>
       </impp:tuple>
       <myex:mytag>My extended presentity information</myex:mytag>
   </impp:presence>






  [reminder: [email protected] for non-technical discussions, please]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.