Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Getting distinct values

From: "TOUDIdel" <toudidel@----.-->
To: NULL
Date: 3/30/2008 8:33:00 PM


U¿ytkownik "chris fellows" <chrisfellows@n...> napisa³ w wiadomo¶ci 
news:eShewdZkIHA.1168@T......
>I need some help to transform some XML that is derived from a recordset 
>where each record is a Record element. My output XML needs to have one 
>Record element for each distinct Id value and within this element I want a 
>ColValuesA element that contains a distinct list of all ColA values and a 
>ColValuesB element that contains a distinct list of all ColB values.

In XSLT you can use "attributes rule" - I mean in one element you can have 
only one attribute with certain name, so first transform your column data to 
elements' attributtes names and then you will be able count or read that 
attributtes.
For example: if you have values: B1, B2, B3, B1, B2, B3 and that values 
transform to node's attributtes names you would have:

<node B1="" B2="" B3=""/> because it is not possible to have a few 
attributtes with the same name (<node B1="" B2="" B3="" B1="" B2="" B3="").

It is one way to get distinct values in xml via xslt transformation
-- 
td 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent