Subject: Re: [xsl] CALS to XHTML table - rowspan From: "Bob Thomas bob.thomas@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Mon, 5 Oct 2015 16:06:59 -0000 |
I should have added the colname attribute to each entry element. Having it there will make the solution simpler. On Mon, Oct 5, 2015 at 9:58 AM, a kusa akusa8@xxxxxxxxx < xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > Yes Bob. You are right. It is a proper CALS table. I just typed in a > sample here. > > On Mon, Oct 5, 2015 at 10:52 AM, Bob Thomas bob.thomas@xxxxxxxxxxxxx < > xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > >> Before you begin transforming make sure that you are starting from CALS >> tables that work. Your sample CALS table has problems. I am guessing that >> you meant something closer to this: >> >> <table> >> <tgroup cols="3"> >> <tbody> >> <row> >> <entry morerows="2">r1c1</entry> >> <entry morerows="1">r1c2</entry> >> <entry>r1c3</entry> >> </row> >> <row> >> <entry>r2c3</entry> >> </row> >> <row> >> <entry>r3c2</entry> >> <entry>r3c3</entry> >> </row> >> <row> >> <entry>r4c1</entry> >> <entry>r4c2</entry> >> <entry>r4c3</entry> >> </row> >> </tbody> >> </tgroup> >> </table> >> >> Best Regards, >> Bob Thomas >> Tagsmiths, LLC >> >> On Mon, Oct 5, 2015 at 9:39 AM, a kusa akusa8@xxxxxxxxx < >> xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: >> >>> Hello: >>> >>> It has been a while since I worked on XSLT. But I have a current issue >>> that I need to solve with xslt. >>> >>> I have a CALS table that has @morerows. I have to generate a table >>> that does not have a rowspan attribute, and generate cells according >>> to the value of @morerows. >>> >>> So, my input XML looks like this: >>> >>> <table> >>> <tgroup> >>> <tbody> >>> <row><entry morerows="2">test 1</entry> >>> <entry morerows="1">test 2</entry> >>> <entry morerows="0">test 3</entry> >>> </row> >>> <row><entry morerows="0">test 4</entry> >>> <entry morerows="1">test 5</entry> >>> <entry morerows="0">test 6</entry> >>> </row> >>> </tbody> >>> </tgroup> >>> </table> >>> >>> How do I generate rows/cells based on morerows in xslt? >>> >>> Any tips is appreciated. >>> >>> >> >> >> -- >> Bob Thomas >> +1 720 201 8260 >> Skype: bob.thomas.colorado >> Instant messaging: Gmail chat (bob.thomas@xxxxxxxxxxxxx) or Skype >> Time zone: Mountain (GMT-7) >> >> >> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> >> EasyUnsubscribe <http://-list/1141384> (by email) >> > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <-list/2769304> (by > email <>) > -- Bob Thomas +1 720 201 8260 Skype: bob.thomas.colorado Instant messaging: Gmail chat (bob.thomas@xxxxxxxxxxxxx) or Skype Time zone: Mountain (GMT-7)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] CALS to XHTML table - row, a kusa akusa8@xxxxxx | Thread | Re: [xsl] CALS to XHTML table - row, Eliot Kimber ekimber |
Re: [xsl] CALS to XHTML table - row, a kusa akusa8@xxxxxx | Date | Re: [xsl] CALS to XHTML table - row, Eliot Kimber ekimber |
Month |