Friend,

If anybody knows how to convert cals table into indesign table using xsl please 
help me.

Ex:Cals xml
<Table Id="ch03table1">
    <Legend>
        <Legendnum>Table 3</Legendnum>
    
        <Legendtext>
            <Smalltext>
            <br/>
            <Emphasis Type="Bold">Antidepressants</Emphasis>
            </Smalltext>
        </Legendtext>
    </Legend>
    <Tgroup Cols="3" Colsep="0" Rowsep="0" Align="LEFT">
    <Colspec Colnum="1" Colname="c1" Colwidth="200"/>
    <Colspec Colnum="2" Colname="c2" Colwidth="150"/>
    <Colspec Colnum="3" Colname="c3" Colwidth="150"/>
    <Thead>
        <Row Rowsep="1">
            <Entry Valign="BOTTOM" Align="LEFT">
                <Smalltext>    
                <Emphasis Type="Italic">Type of antidepressant</Emphasis>    
                </Smalltext>                                                
</Entry>
            <Entry Valign="BOTTOM">
                <Smalltext>
                <Emphasis Type="Italic">Generic 
name</Emphasis>                                    </Smalltext>
            </Entry>
            <Entry Valign="BOTTOM">
                <Smalltext>
                <Emphasis Type="Italic">Usual brand 
name</Emphasis>                                    </Smalltext>
            </Entry>
        </Row>
    </Thead>                                                        <Tbody>
        <Row>
            <Entry Valign="TOP">
                <Smalltext>Selective serotonin reuptake inhibitors (SSRIs)
</Smalltext>
            </Entry>
            <Entry Valign="TOP">                                    
<Smalltext>citalopram<br/>escitalopram<br/>fluoxetine<br/>fluvoxamine<br/>paroxe
tine<br/>sertraline</Smalltext>                        </Entry>
            <Entry Valign="TOP">                                    
<Smalltext>Celexa<br/>Lexapro<br/>Prozac<br/>Luvox<br/>Paxil<br/>Zoloft</Smallte
xt>
            </Entry>
        </Row>
        <Row>
            <Entry Valign="TOP">
                <Smalltext>Other #x201C;modern#x201D; 
antidepressants</Smalltext>
            </Entry>
            <Entry 
Valign="TOP">                                                    
<Smalltext>bupropion<br/>duloxetine<br/>mirtazapine<br/>venlafaxine<br/></Smallt
ext>
            </Entry>
            <Entry Valign="TOP">                                        
<Smalltext>Wellbutrin<br/>Cymbalta<br/>Remeron<br/>Effexor</Smalltext>
            </Entry>
        </Row>
        <Row>
            <Entry Valign="TOP">
                <Smalltext>Tricyclic antidepressants (TCAs)</Smalltext>
            </Entry>
            <Entry Valign="TOP">                                    
<Smalltext>amitriptyline<br/>clomipramine<br/>desipramine<br/>doxepin<br/>imipra
mine<br/>maprotiline<br/>nortriptyline<br/>protriptyline<br/>trimipramine</Small
text>
            </Entry>
            <Entry Valign="TOP">                    
<Smalltext>Elavil<br/>Anafranil<br/>Norpramin<br/>Sinequan<br/>Tofranil<br/>Ludi
omil<br/>Pamelor<br/>Vivactil<br/>Surmontil</Smalltext>
            </Entry>
        </Row>
        <Row>
            <Entry Valign="TOP">
                <Smalltext>Monoamine oxidase inhibitors (MAOIs)*</Smalltext>
            </Entry>
            <Entry Valign="TOP">                                        
<Smalltext>isocarboxazid<br/>phenelzine<br/>tranylcypromine</Smalltext>
            </Entry>
            <Entry Valign="TOP">                                            
<Smalltext>Marplan<br/>Nardil<br/>Parnate</Smalltext>
            </Entry>
        </Row>
    </Tbody>
    </Tgroup>                        
    <Tfoot>
        <Smalltext>*rarely prescribed for young people because of the strict 
dietary limitations that MAOIs require</Smalltext>        </Tfoot>
</Table>

i want to convert the above xml into indesign-compliant xml.I want xslt for 
that.

Ex:Indesign-Compliant XML

<Table xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/"; aid:table="table" 
aid:tcols="4" aid:trows="3">
<Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="130" aid:cstyle="italics">Table header 1</Cell>
<Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="59">Table header 2</Cell>
<Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="130">Table header 3</Cell>
<Cell aid:table="cell" aid:theader="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="130">Table header 4</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">A</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="59">B
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">C
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">D
</Cell>
<!--<Cell aid:table="cell" aid:crows="1" aid:ccols="2">E straddles two 
columns</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">F
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">G
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">H
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="59">I
</Cell>
<Cell aid:table="cell" aid:crows="2" aid:ccols="1" aid:ccolwidth="130">J 
straddles two rows</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">K
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">L
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="59">M
</Cell>
<Cell aid:table="cell" aid:crows="1" aid:ccols="1" aid:ccolwidth="130">N
</Cell>-->
<Cell aid:table="cell" aid:tfooter="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="130">Table footer 1</Cell>
<Cell aid:table="cell" aid:tfooter="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="59">Table footer 2</Cell>
<Cell aid:table="cell" aid:tfooter="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="130">Table footer 3</Cell>
<Cell aid:table="cell" aid:tfooter="" aid:crows="1" aid:ccols="1"
aid:ccolwidth="130">Table footer 4</Cell>
</Table>

if i load the above indesign-compliant xml in Adobe InDesign CS2,it will get 
converted in a table format.

I want to convert the cals xml into indesign-compliant xml.

It is very very very urgent.Please help me.I have to submit tomorrow(June 
2,2006)




_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to