Hi, in the example above, we need to sort by the attribute of the
element.
I'm usins xls_sort :
<xsl:template match="cm_procesos">
<xsl:for-each select="fila">
<xsl:sort select="ide_proceso" date-type="string" order
="ascending" />
<xsl:value-of select="Valor"/>
<fila>
<xsl:apply-templates/>
</fila>
</xsl:for-each>
</xsl:template>
<xsl:template match="ide_proceso">
<ide_proceso Valor="{(_at_)Valor}">
<xsl:value-of select="@Valor"/>
</ide_proceso>
</xsl:template>
An example of xml is this:
<cm_procesos>
<fila>
<ide_proceso Valor="VVV"/>
</fila>
<fila>
<ide_proceso Valor="AAA"/>
</fila>
</cm_procesos>
The unique solution is that I write the xml like this, but is not the
solution.
<ide_proceso >"VVV"</ide_proceso>
Thank you.
Sergio Soriano Aina.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list