Jump to content

XML distinct values with xslt/xquery 1.0


parrot
 Share

Recommended Posts

Hi, Can you pls help how to retrive only the distinct values from an xml file using xslt/xquery 1.0?<Main> <element1>table</element1> <element2>chair</element2> <element3 newattr1="samsung">cooler1</element3> <element4 new attr1="whirlpool">cooler2</element4> <element1>table</element1> <element2>chair</element2> <element3 newattr1="samsung">cooler1</element3> <element4 new attr1="whirlpool">cooler2</element4> <element3 newattr1="samsung">cooler1</element3> <element2>chair</element2> <element1>table</element1></Main>to get string value as:table | chair |cooler1=samsung |cooler2=whirlpool |

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...