|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl template usage ?
hi santtu
thanks for the hint for mode property. I just started getting in to xsl and I am unaware of many of the features. by the way now I get some trouble. here is my xsl part ------------------------------
<xsl:template match="html:table">
<xsl:apply-templates select="html:caption"/>
</fo:table-caption>
<fo:table xsl:use-attribute-sets="table">
<xsl:if test="@width">
<xsl:attribute name="width"><xsl:value-of
select="@width" />
<xsl:text>pt</xsl:text></xsl:attribute>
</xsl:if> <xsl:if test="@border">
<xsl:attribute name="border-style"><xsl:value-
of select="@border" /></xsl:attribute>
</xsl:if>
<xsl:attribute name="background-color"><xsl:value-
of select="@bgcolor" /></xsl:attribute> <xsl:apply-templates select="html:thead"/>
<xsl:apply-templates select="html:tfoot"/> <xsl:choose>
<xsl:when test="html:tbody">
<xsl:apply-templates select="html:tbody"/>
</xsl:when>
<xsl:otherwise>
<fo:table-body>
<xsl:apply-templates select="html:td"
mode="contents"/> <xsl:apply-templates select="html:tr"/>
</fo:table-body>
</xsl:otherwise>
</xsl:choose>
</fo:table>
</xsl:template>
-------------------------------
where u can see two lines
<xsl:apply-templates select="html:td"
mode="contents"/><xsl:apply-templates select="html:tr"/> where I Am trying to call html:td with "contents" as mode, which results in no result. I got the xsl-template definitions like below
----------------------------------------
<xsl:template match="html:tr">
<fo:table-row xsl:use-attribute-sets="tr">
<xsl:apply-templates select="html:th | html:td"/>
</fo:table-row>
</xsl:template> <xsl:template match="html:td">
<fo:table-cell xsl:use-attribute-sets="td">
<xsl:call-template name="make-cell" />
</fo:table-cell>
</xsl:template> <xsl:template match="html:td" mode="contents">
<fo:table-column xsl:use-attribute-sets="td">
<xsl:call-template name="make-cell" />
</fo:table-column>
</xsl:template>
------------------------------------------can anybody gimme some suggestions please? thanks sudha From: Jarno.Elovirta@xxxxxxxxx Best Regards Sudha einsurance Agency AG Information Technology Germany ---------------------------------------------------------------------- Unless we ask the right questions.. we won't get the right answers ---------------------------------------------------------------------- _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








