我有两个 XSL 变量,其中包含这样的数据 第一个items
<values>
<value>
12635
</value>
<value>
SD20
</value>
<value>
2404
</value>
<value>
3586877
</value>
</values>
第二个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>
我想syddata
根据items
..means中的value
字段的顺序进行排序items
Varenummer
syddata
syddata
<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>
我已将我的整个 XSLT 添加到此处,以了解工作流程如何
<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>