Hardy,
How about this?
<xml id="dsoSeminar"><xsl:copy-of select="/" /></xml>
Hope this helps.
-Peter
-----Original Message-----
From: Hardy Merrill [mailto:HMerrill(_at_)dhcr(_dot_)state(_dot_)ny(_dot_)us]
Sent: Tuesday, May 03, 2005 10:41 AM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] msxml4 data islands and "xsl:copy-of"
Because of the need for some javascript code, I need a data island. In
my style sheet, if an xml document(seminar_info) is passed in as a
parameter, I can do this with that parameter to get that document as a
data island:
<xml id="dsoSeminar"><xsl:copy-of
select="msxsl:node-set($seminar_info)" /></xml>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
but my question is, if I want to make a data island out of the main
document that is being rendered by the style sheet, how do I do that?
I've tried these:
<xml id="dsoSeminar"><xsl:copy-of select="document()" /></xml>
<xml id="dsoSeminar"><xsl:copy-of select="document('')" /></xml>
<xml id="dsoSeminar"><xsl:copy-of select="." /></xml>
and none of them work.
TIA.
Hardy Merrill
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--