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

Re: xslt file correction

Subject: Re: xslt file correction
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Fri, 07 Jun 2002 00:49:08 +0200
xslt number columns spanned
Where is the problem? It's the same as the rest: You may not do <xsl:value-of select="."/>, you have to do <xsl:apply-templates/>.

Regards,

Joerg

normbishop1@xxxxxxxxxxxx wrote:
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






XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.