XSL - store unique and sorted data in a variable
问题 Using XSLT 2.0 and Apache FOP I want to be able to create a new variable, have unique and sorted values inside it by category but preserve the nodes. So the new variable should have the following nodes: <category>1. First Aid</category> <category>2. Access control</category> <category>3. Fire safety</category> <category>4. Recognition</category> The input XML is the following: <equipment> <E0132> <category>1. First Aid</category> <description>Lorem ipsum dolor sit amet, consectetur adipiscing