XSLT dynamically filter on multiple elements
问题 I'm new to XSLT and trying to figure out how to use it to turn this XML: <people> <person> <role>Parent</role> <lastname>Smith</lastname> <locations> <location> <city>Springfield</city> <state>MA</state> <unimportant-field>123</unimportant-field> </location> <location> <city>Chicago</city> <state>IL</state> <unimportant-field>456</unimportant-field> </location> </locations> </person> <person> <role>Child</role> <lastname>Smith</lastname> <locations> <location> <city>Springfield</city> <state