CC/PP and UAProf profiles

Dear Sir/Madame,

I am currently working on a university project about WAP development.  After studying technologies within this field I have come to learn about CC/PP.  However I do not fully understand the concept and was hoping I could get some help in understanding this area.

I understand that a Schema is set up for different devices like this example from http://www.w3.org/TR/2000/WD-CCPP-struct-20000721/

<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
     xmlns:ccpp="http://www.w3.org/2000/07/04-ccpp#"
     xmlns:uaprof="http://www.wapforum.org/UAPROF/ccppschema-19991014#">

  <Description about="http://www.example.com/MyProfile">
    <ccpp:component>
      <Description about="http://www.example.com/TerminalHardware">
        <type resource="http://www.example.com/Schema#HardwarePlatform" />
        <uaprof:CPU>PPC</uaprof:CPU> 
        <uaprof:ScreenSize>320x200</uaprof:ScreenSize>
      </Description> 
    </ccpp:component>

    <ccpp:component> 
      <Description about="http://www.example.com/TerminalSoftware">
        <type resource="http://www.example.com/Schema#SoftwarePlatform" />
        <uaprof:OSName>EPOC</uaprof:OSName>
        <uaprof:OSVersion>2.0</uaprof:OSVersion> 
        <uaprof:OSVendor>Symbian</uaprof:OSVendor> 
      </Description> 
    </ccpp:component>

    <ccpp:component> 
      <Description about="http://www.example.com/Browser"> 
        <type resource="http://www.example.com/Schema#BrowserUA" /> 
        <uaprof:BrowserName>Mozilla</uaprof:BrowserName>
        <uaprof:BrowserVersion>5.0</uaprof:BrowserVersion>
        <uaprof:CcppAccept>
          <Bag>
            <li>text/plain</li>
            <li>text/vnd.wap.wml</li>
          </Bag>
        </uaprof:CcppAccept>
      </Description> 
    </ccpp:component>
  </Description>
</RDF>

Once the different schemas have been set up for each Mobile device I.e. Nokia, Sony, etc
Then how do you then
(a) Identify which mobile device is trying to access your site, to use the settings of the correct schema?
(b) make use of the schema to change the way you site content is displayed on there device?

Any help would be gratefully received, or any examples of code I could look at to solve my queries.

Thanks
Simon

Received on Monday, 7 March 2005 19:28:42 UTC