I'm trying to sort out the ids from all DCR nodes under the templatedata, but it doesn't work by sorting in ascending order.
Here's my code -
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:apply-templates select="//ContentList/child::node()">
</xsl:apply-templates>
</xsl:template>
<xsl:template match="//ContentList/child::node()">
<xsl:variable name="ServerVar"><xsl:value-of select="@serverURL"/>/<xsl:value-of select="@VPath"/></xsl:variable>
<xsl:variable name="VPath"><xsl:value-of select="@VPath"/></xsl:variable>
<xsl:if test = "contains ($ServerVar,'templatedata/Site1/data/')" >
<xsl:variable name="NewVarObj" select="document($ServerVar)"/>
<xsl:for-each select="$NewVarObj/item/container">
<xsl:sort select="id" data-type="number" order="ascending"/>
<br/><xsl:value-of select="id"/>
</xsl:for-each>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Does anyone share some advice on this issue?
Thanks.