[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Outputing tables on the fly (Was incrementing mid-stream part 4) - [Long: XML/XSL samples included]
Subject: RE: [xsl] Outputing tables on the fly (Was incrementing mid-stream part 4) - [Long: XML/XSL samples included] From: "Andreas L. Delmelle" <a_l.delmelle@xxxxxxxxxx> Date: Tue, 20 Apr 2004 17:50:08 +0200 |
> -----Original Message----- > From: Durston, Andrew (AGRE) Hi, > One quick hitch I came across, at the same point in > the document (1.2.2.xxx) there can be multiple tables imbedded > (of various sizes). I have one imbedded at > objectnumber=1.2.2.2.0-2.0-1.0-1.0-1 and another one at > objectnumber=1.2.2.2.0-4.0-1.0-1.0-1 for example. > I do know that when the requirement tool (DOORS) creates a table, > the first element is always objectnumber=X.Y.Z.0-1.0-1.0-1 (a > table following objectnumber=1.5.4 would be 1.5.4.0-1.0-1.0-1 for > example) and flagged as tabletype=TableCell. > So I guess I need to modify the table-row template to process > only the 1st row of the first table encountered (now it seems to > be concatenating the 1st row of all tables encountered at that > level). Do the tablenumcols and tablenumrows variables become > relevant now? > Hmm. I'm not too sure, and I've been pondering over it yesterday, but it seems that that objectnumber node lends itself to perform some grouping on the doorsobject nodes. IOW, it seems that that node in itself contains all relevant information. Strictly speaking, you could extract the row and column-indices from that node. In my solution, the part that actually initiates the table creation, selects only nodes with an objectnumber node whose first 6 characters match the first 6 of the current node's objectnumber. If you extend this to match more characters... ... And while I was typing this, received your message in which you inform us of having found the solution, so I'll leave you to it then. Best of luck! Cheers, Andreas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Outputing tables on the f, Durston, Andrew (AGR | Thread | RE: [xsl] Outputing tables on the f, Durston, Andrew (AGR |
Re: [xsl] Sorting in Ancient Greek, David Carlisle | Date | RE: [xsl] Reformatting stylesheet (, Tim Meals |
Month |