FIX: Document Function in XSLT Style Sheet Does Not Raise a .NET Exception (325692)
The information in this article applies to:
- Microsoft XML Classes (included with the .NET Framework 1.0)
This article was previously published under Q325692 SYMPTOMS With the document() XSLT function, you can retrieve other XML resources from an XSLT
style sheet in addition to the initial data that the input stream provides. The
.NET Framework XSLT processor does not raise any exception when it cannot
resolve a document() reference in an XSLT style sheet to an external XML resource. The
XSLT transformation completes successfully and the result that is generated is
not as you expect. RESOLUTION Check the Uniform Resource Identifier (URI) parameter that
is used to reference the external XML resource in the document() function to make sure that it points to a valid location (for
example, the correct file name and path).
The default resolution
process can also fail if the referenced XML resource is located in a secured
location (for example, a Web site or a network share that requires specific
user credentials to access its resources). To address this, you must create an
instance of, and then use a custom XmlUrlResolver object to supply the credentials that you must have to access the
XML resource from the secured location. STATUS This bug was corrected in Microsoft .NET Framework Class
Libraries 1.1.
This is a design limitation in the implementation of the
document() XSLT function of the .NET Framework XSLT Processor. Microsoft is
currently researching this problem. REFERENCES
Modification Type: | Major | Last Reviewed: | 9/22/2003 |
---|
Keywords: | kbprb KB325692 |
---|
|