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

using xsl:key

Subject: using xsl:key
From: "Peter Foley" <peter.foley@xxxxxxxxxx>
Date: Tue, 29 Feb 2000 10:40:50 +1100
using xsl key

I hope you can help with a tricky problem.

I have a table format e.g.

<Table>
     <Heading>
          <Column>
               Male
          </Column>
          <Column>
               Female
          </Column>
     </Heading>
     <Rows>
          <Row>
               <Cell>
                    Employed
               </Cell>
               <Cell>
                    1-1
               </Cell>
               <Cell>
                    1-2
               </Cell>
          </Row>
          <Row>
               <Cell>
                    Not Employed
               </Cell>
               <Cell>
                    2-1
               </Cell>
               <Cell>
                    2-2
               </Cell>
          </Row>
     </Rows>
     <Cells>
          <Data id="1-1">
               10
          </Data>
          <Data id="1-2">
               20
          </Data>
          <Data id="2-1">
               30
          </Data>
          <Data id="2-2">
               40
          </Data>
     </Cells>
</Table>

As you can see the id of the Data tag identifies the cell the data is put in. I
key the data tags on @id so that when I process the Row/Cell I can retrieve the
cell value. This works great BUT now the user wants to aggregate 2 or more
tables. This means that there are now 2 or more Data tags with the same id.

What does this do to Key? Can I say sum (Key("data", value))?



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • using xsl:key
    • Peter Foley - Tue, 29 Feb 2000 10:40:50 +1100 <=

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.