[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Sort column in table


Subject: [xsl] Sort column in table
From: "Norma Yeazell" <Nyeazell@xxxxxxxxx>
Date: Thu, 15 Jan 2004 12:26:50 -0500

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