This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Is it possible to select only nodes with distinct element?


Hi

I need to select only distinct nodes, something like SELECT DISTINCT in SQL.
By distinct I mean that one element of node is distinct.

example:
xml

<a>
	<b>1</b>
</a>
<a>
	<b>1</b>
</a>
<a>
	<b>2</b>
</a>

xsl should select and transform only

<a>
	<b>1</b>
</a>
<a>
	<b>2</b>
</a>

and in output I should have only one copy of

<a>
	<b>1</b>
</a>

Is that possible or I should change xml?

Thanks in advance

Denis Kranjcec


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]