I have two XSL variables which holds a data like this
First one items
<values>
<value>
12635
</value>
<value>
SD20
</value>
<value>
2404
</value>
<value>
3586877
</value>
</values>
second one syddata
<syddata lastUpdated="07.11.2013 11:06 ">
<data Varenummer="3586877" Varenavn="Liqudffid s" Brand="Georg Jensen" ></data>
<data Varenummer="12635" Varenavn="tesr" Brand="Kähcddler" ></data>
<data Varenummer="2404" Varenavn="uhjy" Brand="Pitcfrhstone" ></data>
<data Varenummer="SD20" Varenavn="sfggh" Brand="dghgh" ></data>
</syddata>
I want to order syddata
according to the order of items
..means value
field in items
are same to Varenummer
field in syddata
.I want o use this as a key and sort syddata
expected output will be like this
<syddata lastUpdated="07.11.2013 11:06 ">
<data Varenummer="12635" Varenavn="tesr" Brand="Kähcddler" ></data>
<data Varenummer="SD20" Varenavn="sfggh" Brand="dghgh" ></data>
<data Varenummer="2404" Varenavn="uhjy" Brand="Pitcfrhstone" ></data>
<data Varenummer="3586877" Varenavn="Liqudffid s" Brand="Georg Jensen" ></data>
</syddata>
I have added my whole XSLT to here ,to get know how the workflow is
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:XSLTHelper="urn:XSLTHelper"
xmlns:exslt="http://exslt.org/common"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon"
exclude-result-prefixes=" msxsl msxml ">
<xsl:output method="html" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:variable name="items" select="umbraco.library:Split($textWithPipes, '|')"/>
<xsl:variable name="syddata" select="XSLTHelper:GenerateData($productids)"/>
</xsl:template>
</xsl:stylesheet>
version="2.0"
in the stylesheet, but also declarations of the exslt and msxsl extension namespaces which suggest the processor is really 1.0? – Ian Roberts