I need to make an average of latitude and longitude. Please find below the XML :
<gml:posList>-52.02545860348812 -173.671875 -52.02545860348812 -173.583984375 -52.18740474559968 -173.583984375 -52.18740474559968 -173.671875 -52.02545860348812 -173.671875</gml:posList>
Knowing that my XML is formed in the following way and the number of iteration/points is random :
<gml:posList>lat1 long1 lat2 long2 lat3 long3 etc...</gml:posList>
in output, i want something like that :
<centerOf>-52.1064317 -173.62793</centerOf>
My level in XSLT is really bad, i hope to find some help here.
Thank you, Martin