Subject: Re: [xsl]xslt file correction From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Fri, 07 Jun 2002 00:49:08 +0200 |
COREECTION: I forgot to attach the template for the table. I believe the reson <sub> inside the table is not taking place bec. of this template. Since, I cannot have <xsl:template> within template, not sure how to make the <sub> to make it active.
I am almost there.... But, still dealing with one more issue. This template works great, except for <table> elements. This template has no effect on the xml file below.
Thanks again!!!
<xsl:template match="//sub"> <fo:inline vertical-align="sub"> <xsl:apply-templates/> </fo:inline> </xsl:template>
<xsl:template match ="document/TABLE[@name='tableA']" >
<xsl:variable name="tpageCount" select="0"/> <xsl:variable name="tableHeader" select="tableTitle"/> <fo:table width="7in" table-layout="fixed" background-color="#FFFFCC"
table-omit-header-at-break="false"
space-after="48pt">
<fo:table-column column-number="1" column-width="2.5in" />
<fo:table-column column-number="2" column-width="1.5in"/>
<fo:table-header>
<fo:table-row keep-together="always"> <fo:table-cell number-columns-spanned="2"> <fo:block font-weight="bold"
font-size="12pt" text-align="center"> <xsl:value-of select="$tableHeader"/>
</fo:block>
</fo:table-cell>
</fo:table-row> </fo:table-header> <fo:table-body> <xsl:for-each select="rows">
<fo:table-row keep-together="always" height="15pt"> <fo:table-cell column-number="1">
<fo:block> <xsl:value-of select="."/> </fo:block>
</fo:table-cell> </fo:table-row>
</xsl:for-each> </fo:table-body> </xsl:template>
an xml file like this has no effect on the <sub>. <TABLE name="tableA" order="4"> <tableTitle>Table <sub>A</sub> with names<sub>5</sub></tableTitle> <rows> <col1>Testing tableA with col1 {371}</col1> <col2>testing tableA with col<sub>2</sub>)</col2> </rows> </TABLE>
__________________________________________________________________ Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re:[xsl]xslt file correction | Tbl , normbishop1 | Thread | Re: [xsl]xslt file correction | Tbl, David Carlisle |
[xsl] Borders on column groups, Gustaf Liljegren | Date | Re: [xsl]xslt file correction, David Carlisle |
Month |