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

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
html table rendering
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

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.