Solved

Rowspan through XSL - Reopen

Posted on 2011-03-21
6
579 Views
Last Modified: 2013-11-18
Question: Related to rowspan in tables

Sorry by selecting @orgrownum is not working rather, if o_morerows is selected is working. But as I said before when this position changes then grouping is not working. Moreover, this o_morerows value is not always "1" sometimes it varies.

I just attach a new table where you can notice o_morerows:

<Table o_frame="topbot" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="16" aid:tcols="6">
<Cell o_morerows="1" align="left" rowsep="1" aid:table="cell" aid:theader="" aid:crows="2" aid:ccols="1" aid:ccolwidth="50.78221062992125">Receptor</Cell>
<Cell o_morerows="1" align="left" rowsep="1" aid:table="cell" aid:theader="" aid:crows="2" aid:ccols="1" aid:ccolwidth="83.60640748031511">Location</Cell>
<Cell o_morerows="1" align="left" rowsep="1" aid:table="cell" aid:theader="" aid:crows="2" aid:ccols="1" aid:ccolwidth="128.90840748031513">Main function</Cell>
<Cell o_morerows="1" align="left" rowsep="1" aid:table="cell" aid:theader="" aid:crows="2" aid:ccols="1" aid:ccolwidth="80.05676377952739">Signalling system</Cell>
<Cell o_nameend="col6" o_namest="col5" align="center" rowsep="1" aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="2">Significant drugs</Cell>
<Cell orgrownum="2" aid:pstyle="T_col_hd_TableHead" align="left" rowsep="1" aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">Agonists</Cell>
<Cell orgrownum="2" aid:pstyle="T_col_hd_TableHead" align="left" rowsep="1" aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Antagonists</Cell>
<Cell orgrownum="3" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT
</Cell>
<Cell orgrownum="3" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS</Cell>
<Cell orgrownum="3" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Neuronal inhibition¿Behavioural effects: sleep, feeding, thermoregulation, anxiety</Cell>
<Cell o_morerows="5" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">G protein (G/G)¿ cAMP (may also modulate Ca channels)</Cell>
<Cell orgrownum="3" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">Buspirone (PA)¿
¿
</Cell>
<Cell orgrownum="3" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Ergotamine (PA)</Cell>
<Cell orgrownum="4" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT
</Cell>
<Cell orgrownum="4" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, vascular smooth muscle, many other sites</Cell>
<Cell orgrownum="4" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Presynaptic inhibition¿Behavioural effects¿Pulmonary vasoconstriction</Cell>
<Cell align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">
</Cell>
<Cell orgrownum="4" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">Ergotamine (PA)¿Triptans</Cell>
<Cell orgrownum="4" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Methiothepin</Cell>
<Cell orgrownum="5" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT
</Cell>
<Cell orgrownum="5" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, lymphocytes</Cell>
<Cell orgrownum="5" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">1</Cell>
<Cell align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">1</Cell>
<Cell orgrownum="5" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">1</Cell>
<Cell orgrownum="5" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">2</Cell>
<Cell orgrownum="6" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT
</Cell>
<Cell orgrownum="6" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, blood vessels</Cell>
<Cell orgrownum="6" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Cerebral vasoconstriction¿Behavioural effects: locomotion</Cell>
<Cell align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">
</Cell>
<Cell orgrownum="6" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">
¿Triptans</Cell>
<Cell orgrownum="6" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Ergotamine (PA)</Cell>
<Cell orgrownum="7" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT
</Cell>
<Cell orgrownum="7" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS</Cell>
<Cell orgrownum="7" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513"></Cell>
<Cell align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739"></Cell>
<Cell orgrownum="7" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125"></Cell>
<Cell orgrownum="7" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4"></Cell>
<Cell orgrownum="8" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="8" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, uterus, heart, GI tract</Cell>
<Cell orgrownum="8" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">qw</Cell>
<Cell align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">RT</Cell>
<Cell orgrownum="8" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">Triptans?</Cell>
<Cell orgrownum="8" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">TY</Cell>
<Cell orgrownum="9" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="9" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, PNS, smooth muscle, platelets</Cell>
<Cell orgrownum="9" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Neuronal excitation¿Behavioural effects¿Smooth muscle contraction (gut, bronchi, etc.)¿Platelet aggregation, Vasoconstriction/vasodilatation</Cell>
<Cell o_morerows="2" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">G protein (G/G)¿ IP, Ca</Cell>
<Cell orgrownum="9" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125"> (CNS)¿ (periphery)¿</Cell>
<Cell orgrownum="9" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Cyproheptadine¿Pizotifen (NS)¿Methysergide</Cell>
<Cell orgrownum="10" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="10" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">Gastric fundus</Cell>
<Cell orgrownum="10" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Contraction</Cell>
<Cell align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">tt</Cell>
<Cell orgrownum="10" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">ss</Cell>
<Cell orgrownum="10" aid:pstyle="TableBody" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">q</Cell>
<Cell orgrownum="11" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="11" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, lymphocytes</Cell>
<Cell orgrownum="11" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">q</Cell>
<Cell align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">jk</Cell>
<Cell orgrownum="11" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">ER</Cell>
<Cell orgrownum="11" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Methysergide</Cell>
<Cell orgrownum="12" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="12" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">PNS, CNS</Cell>
<Cell orgrownum="12" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Neuronal excitation (autonomic, nociceptive neurons)¿Emesis¿Behavioural effects: anxiety</Cell>
<Cell orgrownum="12" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">Ligand-gated cation channel</Cell>
<Cell orgrownum="12" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">TY</Cell>
<Cell orgrownum="12" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">Dolesatron¿Granisetron¿Ondansetron¿Palonosetron¿Tropisetron</Cell>
<Cell orgrownum="13" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="13" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">PNS (GI tract), CNS</Cell>
<Cell orgrownum="13" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Neuronal excitation ¿GI motility</Cell>
<Cell orgrownum="13" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">G protein (G)¿ cAMP</Cell>
<Cell orgrownum="13" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">Metoclopramide</Cell>
<Cell orgrownum="13" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4"></Cell>
<Cell orgrownum="14" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="14" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS</Cell>
<Cell orgrownum="14" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Modulation of exploratory behaviour (rodents)?</Cell>
<Cell orgrownum="14" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">As above</Cell>
<Cell orgrownum="14" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">gh</Cell>
<Cell orgrownum="14" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">er</Cell>
<Cell orgrownum="15" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="15" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, leukocytes</Cell>
<Cell orgrownum="15" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Learning and memory?</Cell>
<Cell orgrownum="15" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">As above</Cell>
<Cell orgrownum="15" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">y</Cell>
<Cell orgrownum="15" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">q</Cell>
<Cell orgrownum="16" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="50.78221062992125">5-HT</Cell>
<Cell orgrownum="16" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="83.60640748031511">CNS, GI tract, blood vessels</Cell>
<Cell orgrownum="16" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="128.90840748031513">Thermoregulation? ¿Circadian rhythm?</Cell>
<Cell orgrownum="16" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">As above</Cell>
<Cell orgrownum="16" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="91.48221062992125">q</Cell>
<Cell orgrownum="16" aid:pstyle="TableBody" align="left" rowsep="1" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="57.4">w</Cell>
</Table>


Thanks,
Raj
0
Comment
Question by:rshk2001
  • 4
  • 2
6 Comments
 
LVL 60

Expert Comment

by:Geert Bormans
Comment Utility
well, first of all we need a logic understanding what is going on.
I understand that the table model that you are using does not provide an orgrownum for cells with a rowspan.
It also does not provide a rowstart attribute, this leaves processing the table a little ambiguous
(this is not entirely ambiguous, because you could process the cells a first time, reconstructing the table by calculating the impact of each rowspan and columnspan on the individual cell,
and that leaves you room for knowing where an unidentified cell belongs in a second pass... that is a tricky XSLT and I consider that however outside the scope of an EE question)
I can see a solution based on the Cell order. It seems as is all cells are ordered left to right, top to bottom
From that I can extract the missing row numbers by looking at the previous row that has a rownumber attribute.
This will only go wrong if the morerows cell is the first in the row.
In this table it would work fine however.
I am curious what would happen to the table export if you had a morerows on the first cell


As far as I know there must have been changes to the table model from InDesign4 to InDesign5 because the InDesign5 table model is a lot less ambiguous... or to be correct, more straightforward to process :-)
How are you getting this from InDesign? as IDML? Or is this the plain XML export for one textframe?
0
 
LVL 60

Expert Comment

by:Geert Bormans
Comment Utility
Using the above mentioned logic,
this code definitely seems to work on this table (and on the one from the previous question)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"
    xmlns:table="urn:yours:table"
    xmlns:text="urn:yours:text"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    version="2.0">
    <xsl:output indent="yes"/>
    
    <xsl:template match="Table">
        <xsl:element name="table:table-column">
            <xsl:attribute name="table:style-name">Table1.A</xsl:attribute>
            <xsl:choose>
                <xsl:when test="@aid:tcols &gt;0">
                    <xsl:attribute name="table:number-columns-repeated">
                        <xsl:value-of select="@aid:tcols"/>
                    </xsl:attribute>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:attribute name="table:number-columns-repeated">
                        <xsl:value-of select="@aid:tcols"/>
                    </xsl:attribute>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:element>
        <xsl:for-each-group select="Cell" group-adjacent="xsd:integer((@orgrownum, preceding-sibling::Cell[@orgrownum][1]/@orgrownum, 1)[position() = 1])">
            <xsl:element name="table:table-row">
                <xsl:apply-templates select="current-group()"/>
            </xsl:element>    
        </xsl:for-each-group>    
    </xsl:template>
    
    <xsl:template match="Cell">
        <xsl:element name="table:table-cell">
            <xsl:if test="position()!=last()">
                <xsl:attribute name="table:style-name">Table1.A1</xsl:attribute>
            </xsl:if>    
            <xsl:if test="last()">
                <xsl:attribute name="table:style-name">Table1.B1</xsl:attribute>
            </xsl:if>  
            <xsl:if test="@aid:crows > 1">
                <xsl:attribute name="table:number-rows-spanned"><xsl:value-of select="@aid:crows"/></xsl:attribute>
            </xsl:if>
            <xsl:if test="@aid:ccols > 1">
                <xsl:attribute name="table:number-columns-spanned"><xsl:value-of select="@aid:ccols"/></xsl:attribute>
            </xsl:if>
            <xsl:element name="text:p">
                <xsl:attribute name="text:style-name">Body text</xsl:attribute>
                <xsl:if test="@aid:theader">
                    <xsl:element name="text:span">
                        <xsl:attribute name="text:style-name">bold</xsl:attribute>
                        <xsl:apply-templates />
                    </xsl:element>
                </xsl:if>  
                <xsl:if test="not(@aid:theader)">
                    <xsl:apply-templates />
                </xsl:if>  
            </xsl:element>
        </xsl:element>
    </xsl:template></xsl:stylesheet>

Open in new window

0
 

Author Comment

by:rshk2001
Comment Utility
Yes orgrownum is not provided inside cell when that particular cell has either morerows or namest/nameend attributes. Since these tables are preprocessed before importing into InDesign, so we need to restrict the number of attributes where sometimes InDesign (lower versions) crashes down so whereby these orgrownum are missing.

Usually, when orgrownum is not available then that particular cell either contains morerows or col spanning attributes. I know that this is bit complicated. Now current logic works a bit (I know this not going to fully functional) but the entire column was missing from the above table model where the Cell starts as:

...<Cell o_morerows="5" align="left" rowsep="0" aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="80.05676377952739">G protein (G/G)¿ cAMP (may also modulate Ca channels)</Cell> ...

As you said, true in CS5 things are not that much complicated where markups are well retained but due to workflow I need to move with preprocessed data (ie XML are transformed out of InDesign before importing into it).

Let me your thoughts.



0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:rshk2001
Comment Utility
Gertone, Thank you. It works and I would like to see with mutiple orders and I will close after my testing.
0
 
LVL 60

Expert Comment

by:Geert Bormans
Comment Utility
Have you tried the latest XSLT?
It seems to work on the table you sent.

If in the earlier process (prior to importing in InDesign) could add the @orgrownum as an extra on those cells that have a morerows but are the first in the row
then the above XSLT will work in all cases

I hope that would not break your InDesign import,
but it would save you from a very complex XSLT at this end
0
 
LVL 60

Accepted Solution

by:
Geert Bormans earned 500 total points
Comment Utility
OK, crossing messages :-)
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to count occurrences of each item in an array.
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now