[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:sort by attribute
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="{@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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|