The research paper presents a model-based design approach for context-aware human-computer interface (HCI), utilizing Petri nets (PN) and XML for specification and verification. It proposes an extension of the Petri Net Markup Language (PNML) to facilitate the construction of modular HCI interfaces through the composition of PN structures. The methodology ensures the formal validation of user interfaces prior to implementation, addressing the challenges of adapting to ubiquitous mobile environments.