[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|