This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
document.write & copy-of
- To: "xsl-list at mulberrytech dot com" <xsl-list at mulberrytech dot com>
- Subject: document.write & copy-of
- From: Lee Goddard <home at leegoddard dot com>
- Date: Thu, 26 Oct 2000 10:48:30 +0100
- Organization: Little Bits Ltd
- Reply-To: xsl-list at mulberrytech dot com
I'm trying to get a JS function to pop-up a window
and write into it a copy of a node. Could someone
please give me a hand, let me know where I'm going
wrong? The window opens, but nothing writes....
Thanks in anticipation,
Lee
<xsl:template match="table">
<TABLE class="content" width="90%" 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('
<TABLE>
<xsl:copy-of select="tr"/>
</TABLE>
');
</xsl:attribute>
Enlarge this table
</xsl:element>
</P>
</xsl:template>
[END]
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list