This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re:xslt file correction | Tbl template is included (correction!)
- From: normbishop1 at netscape dot net
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 06 Jun 2002 18:28:48 -0400
- Subject: Re:[xsl]xslt file correction | Tbl template is included (correction!)
- Reply-to: xsl-list at lists dot mulberrytech dot com
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