<msxsl:assembly> Element
msxsl
is bound to the namespace urn:schemas-microsoft-com:xslt
.Syntax
<msxsl:assembly name? = string href? = uri-reference />
Attributes
- name
Type:string
The name of the assembly to import.
- href
Type:uri-reference
The path to the assembly to import.
Remarks
This element can only be used inside a <msxsl:script><msxsl:script><msxsl:script> element. Either the href or name attributes must be included, but not both.
The name attribute can be used to specify the assembly name of an assembly to import. This can be the full name, or the abbreviated name of an assembly, as shwon in the following examples:
<msxsl:assembly name="System.Xml"/> <msxsl:assembly name="System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
The href attribute can be used to load an assembly directly from a URL, as shown in the
following examples. Note that the value of this attribute must be in the lexical space of xs:anyURI
.
If the value is a relative URI, it is resolved against the base URI of the element. In particular a DOS path
is not accepted. This may change in a future version. The following examples show how to import assemblies
from specific locations.
<msxsl:assembly href="Library.dll" /> <msxsl:assembly href="file:///c:/Application/Library.dll" /> <msxsl:assembly href="http://example.org/Library.dll" />
Importing an assembly does not bring any of its namesaces into scope. All types must be fully qualified with their namespace, unless an <msxsl:using><msxsl:using><msxsl:using> element is added.
A number of assemblies are included by default:
System.dll
System.Xml.dll
Microsoft.VisualBasic.dll
(when the language used is Visual Basic)