Extract task and relationship

hello
how to extract the activities and relations between them in a bpmn model from the xml code of bpmn using xslt ???