ALGORITHM  Device_Capabilities_Detection
// Output: String value of TF[i]
(1) Lexical Analyzer (MIME, “ ”)
(2) for i 1 to mc
(3) for j 1 to tt
(4)  If TokenAttributesMatch  (MIME,TA[i,j])
(5)  TF[i] Token format string
(6) return
Algorithm 4: Device capabilities detection algorithm.