40 likes | 147 Views
<Map id=P2 desc="P Block level 2'> <room id="2P2"> This is a nice big office <area rect coords="118,39,138,68"> <typo>Staff Room</typo> <occupant>Tony Solomonides</occupant> </Room> <room id="2P3">
E N D
<Map id=P2 desc="P Block level 2'> <room id="2P2"> This is a nice big office <area rect coords="118,39,138,68"> <typo>Staff Room</typo> <occupant>Tony Solomonides</occupant> </Room> <room id="2P3"> <area rect coords="141,40,162,69"></area> <typo>Staff Room</typo> <occupant>”Richard Lawson”</occupant> </Room> <room id="2P4"> <area poly coords="201,40,234,40,234,118,164,119,163,71,200,71"/> <typo>Office</typo> <occupant>Eleanor Gibbons</occupant> <person>Dee Evans</person> <occupant>Ali Jack</occupant </Room> ---
Examples • all Rooms • /MapSet/Map/room • //room • room 2P5 • //room[@id=‘2P5’] • the occupants of room 2P4 • //room[@id=‘2P4’]/occupant • the roomNo of the room which Colin Fudge occupies • //room[occupant = ‘Colin Fudge’]/@id • the number of occupants of 2P4 • count(//room[@id=‘2P4’]/occupant) • The floor of Ali Jack’s room • //room[occupant = ‘Ali Jack’]/../@desc
Examples for you • The room number for Richard Lawton • The coordinates of room 2P2 • All rooms with poly shape • Who are Ali Jack’s office mates?