xsl-list
[Top] [All Lists]

[xsl] Use of xsl:document

2006-06-22 03:46:44
I wish to store an external XML file as the value of an XSLT variable using XSLT 2.0. This is how it is presently being acheived:

<xsl:variable name="Xml" as="document-node()" select="document('test.xml')"/>

Should I be using the xsl:document function instead?
If I should, why?
Is there any use for the xsl:document function other than the fact it allows validation?

_________________________________________________________________
The new MSN Search Toolbar now includes Desktop search! http://join.msn.com/toolbar/overview


--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>