Hi ppl,
I have a xml document with:
<georss:line> latitude longitude latitude longitude </georss:line> and i want the same but in reverse order, two by two, latitude and longitude switched:
<line>longitude, latitude, longitude, latitude </line>
<xsl:for-each select="tokenize(normalize-space(georss:line),' '))">
<xsl:value-of select="."/>,
</xsl:for-each>
My inicial thought was two create two params, pair and latitude and save the latitude and test when it was pair. XSLT give me errors that i couldn't xslaram must be immediately within a template, function or stylesheet
then i found out that there was for-each-group and tried to group two by two but i don't know how.
How can i do it?
Thanks,
jag
I have a xml document with:
<georss:line> latitude longitude latitude longitude </georss:line> and i want the same but in reverse order, two by two, latitude and longitude switched:
<line>longitude, latitude, longitude, latitude </line>
<xsl:for-each select="tokenize(normalize-space(georss:line),' '))">
<xsl:value-of select="."/>,
</xsl:for-each>
My inicial thought was two create two params, pair and latitude and save the latitude and test when it was pair. XSLT give me errors that i couldn't xslaram must be immediately within a template, function or stylesheet
then i found out that there was for-each-group and tried to group two by two but i don't know how.
How can i do it?
Thanks,
jag