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

Re: InDesign IDML table conversion

Subject: Re: InDesign IDML table conversion
From: Markus Abt <abt@xxxxxxxx>
Date: Mon, 20 Aug 2012 14:56:33 +0200
Re:  InDesign IDML table conversion
Hi Ganesh,

Ganesh Babu N wrote:
> Hi Markus,.
> 
> What about Cigarettes, It should give 0 right? but it is also giving
> 2. Please suggest how to over come this hurdle.

>>>                                       <tr>
>>>                                               <td morerows="1" rowspan="2">Cigarettes</td>
>>>                                               <td>NA</td>
>>>                                               <td morerows="1" rowspan="2">test</td>
>>>                                               <td>7.6</td>
>>>                                       </tr>

"parent::tr/preceding-sibling::tr[1]/td[@morerows]" does _not_ select 
the Cigarettes <td> alone, but _also_ the test <td>, even when the 
"current" <td> belongs to the first or second column.
Therefore you get "2" in _both_ cases when counting 
"parent::tr/preceding-sibling::tr[1]/td[@morerows]/preceding-sibling::td"

Instead, you would need to count something like:
parent::tr/preceding-sibling::tr[1]/td[???]/preceding-sibling::td[@morerows]

The ??? part would select the <td> in the correct column. Unfortunately, 
that ??? is all but easy, especially, when you are dealing with "complex" 
tables with lots of different rowspans (over more than 2 rows) and colspans.

You may want to try to find some solution elsewhere, DocBook XSL has 
been mentioned.

Good luck,
Markus

Current Thread

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.