Help with distinct output
Issues related to W3C XQuery.
-
- Posts: 1
- Joined: Wed Aug 17, 2016 6:50 pm
Help with distinct output
Post by tester_123 »
Hi,
I've got an xml like the sample below
I need an XQuery to return any unique set of info values referenced within each item.
i.e (BLUE | BLUE GREEN | RED)
Any help would be greatly appreciated.
Thanks!
I've got an xml like the sample below
Code: Select all
<test1>
<test2>
<item1>
<refs>
<value>101</value>
</refs>
</item1>
<item2>
<refs>
<value>101</value>
</refs>
<refs>
<value>102</value>
</refs>
</item2>
<item3>
<refs>
<value>103</value>
</refs>
</item3>
<item4>
<refs>
<value>101</value>
</refs>
</item4>
<item5>
<refs>
<value>101</value>
</refs>
<refs>
<value>102</value>
</refs>
</item5>
<item6>
<refs>
<value>103</value>
</refs>
</item6>
</test2>
<test3>
</test3>
<info1 ref="101">BLUE</info1>
<info2 ref="102">GREEN</info2>
<info3 ref="103">RED</info3>
</test1>
i.e (BLUE | BLUE GREEN | RED)
Any help would be greatly appreciated.
Thanks!
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service