[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:sort by attribute

Subject: xsl:sort by attribute
From: soriano_s@xxxxxx
Date: Mon, 9 Jun 2003 17:36:45 +0200
xsl sort by
      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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.