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

Sort column in table

Subject: Sort column in table
From: "Norma Yeazell" <Nyeazell@xxxxxxxxx>
Date: Thu, 15 Jan 2004 12:26:50 -0500
sort column
I could swear I've seen some talk about doing this but couldn't seem to
find in the archives.
 
Can anybody give me a clue how to sort the rows by the nomen column
number 1?
 
Here is my table 
Thanks in advance
 
<xsl:template match="supply"> 
  <fo:table-row text-indent="-2cm">
 <xsl:apply-templates/>
  </fo:table-row>
</xsl:template>
 
<xsl:template match="nomen">
    <fo:table-cell height="6mm" display-align="before">
        <fo:block text-align="left">
            <xsl:value-of select="."/>
        </fo:block>
    </fo:table-cell>
</xsl:template>
 
<xsl:template match="identno">
    <fo:table-cell height="6mm" display-align="before">
        <fo:block text-align="left">
            <xsl:value-of select="mfc"/>
        </fo:block>
         <fo:block text-align="left">
            <xsl:value-of select="pnr"/>
        </fo:block>
     </fo:table-cell>
</xsl:template>
 
<xsl:template match="qty">
    <fo:table-cell height="6mm" display-align="before">
        <fo:block text-align="center">
            <xsl:value-of select="."/>
        </fo:block>
    </fo:table-cell>
</xsl:template>
 
<xsl:template match="supplyli"> 
<fo:table-and-caption id="{@id}" caption-side="before" width="15cm"
space-before="4mm" space-after="4mm" table-layout="fixed">
    <fo:table-caption space-after="2mm">
    <fo:block text-align="center" font-style="italic">Table <xsl:number
count="table|table-and-caption|norefs|refdms|nospares|sparesli|nosupeq|s
upeqli|nosupply|supplyli|reqpers|noconds|reqconds" from="dmodule"
level="any"/>  Supplies</fo:block>
    </fo:table-caption>
    <fo:table text-transform="uppercase" margin-left="2cm">
    <fo:table-column column-number="1" column-width="6.5cm"/>
    <fo:table-column column-number="2" column-width="5.2cm"/>
    <fo:table-column column-number="3" column-width="3.3cm"/>
    <fo:table-header text-align="left">
    <fo:table-row text-indent="-2cm" space-after="4mm"
border-before-style="solid" border-before-width="0.5pt">
    <fo:table-cell height="6mm"
display-align="center"><fo:block>Nomenclature</fo:block></fo:table-cell>
    <fo:table-cell display-align="center"><fo:block>Identification
No.</fo:block></fo:table-cell>
    <fo:table-cell display-align="center"><fo:block
text-align="center">Qty</fo:block></fo:table-cell>
        </fo:table-row>
            <fo:table-row height="2mm" border-before-style="solid"
border-before-width="0.5pt">
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
            </fo:table-cell>
            <fo:table-cell>
            </fo:table-cell>
            </fo:table-row>
        </fo:table-header>
        <fo:table-footer>
       <fo:table-row text-indent="-2cm" border-before-style="solid"
border-before-width="0.5pt">
    <fo:table-cell></fo:table-cell>
    <fo:table-cell></fo:table-cell>
    <fo:table-cell></fo:table-cell>
    </fo:table-row>
    </fo:table-footer>
    <fo:table-body>
        <xsl:apply-templates/>
     </fo:table-body>
    </fo:table>
</fo:table-and-caption>
</xsl:template>



Confidentiality Notice
The information contained in this e-mail is confidential and intended for use only by the person(s) or organization listed in the address. If you have received this communication in error, please contact the sender at O'Neil & Associates, Inc., immediately. Any copying, dissemination, or distribution of this communication, other than by the intended recipient, is strictly prohibited.


 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.