Rendering an HTML table twice

Subject: Rendering an HTML table twice
From: Lee Goddard <home@xxxxxxxxxxxxxx>
Date: Thu, 26 Oct 2000 21:03:51 +0100
I have an HTML table in an XML doc which I wish to render
twice, once in the main doc with small fonts, once in a
pop-up window with large fonts.  Jeni kindly provided
assistance and code to render the TABLE element, and now
I can't render the TR/TD elements.  

These contain elements which need to be processed, so TD has to 
apply-templates. But all I get out is <TABLE> text from cells</TABLE>,
no TD or TR elements.  Yet when called initially, to render to
the main doc window, TR and TD render as expected.

Is there something I'm not doing that I should?

Thanks in anticipation,
lee

<xsl:template match="table">
	<TABLE class="content" width="80%" border="1" cellpadding="4" cellspacing="0">
		<xsl:copy-of select="tr"/>
	</TABLE>
	<P align="right" class="table_footer">
        <xsl:element name="A">
                <xsl:attribute name="href">
javascript:Popup=window.open('','IntlPopup','alwaysRaised=1,dependent=1,height=300,location=0,menubar=1,personalbar=0,scrollbars=0,status=0,toolbar=0,width=590,resizable=0');
                    Popup.focus();
                    Popup.document.write('
                    &lt;TABLE&gt;
                    <xsl:apply-templates select="tr" mode="serialise" />
                    &lt;/TABLE&gt;
                    ');
                </xsl:attribute>
                Enlarge this table
        </xsl:element>
	</P>
</xsl:template>

<xsl:template match="tr">
	<xsl:element name="TR">
		<xsl:attribute name='VALIGN'>center</xsl:attribute>
		<xsl:value-of select="@*"/>
		<xsl:apply-templates select="td" mode="serialise"/>
	</xsl:element>
</xsl:template>

<xsl:template match="td"><TD><xsl:apply-templates/></TD></xsl:template>


-- 

Lee Goddard     <mail@xxxxxxxxxxxxxx>
-------------------------------------
"Post-modernism....the meta-narrative that denies meta-narrative."
                   	                   - Cedric Watts, Sussex 1997


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


Current Thread