How To Include Client-Side Script Functions in an XSL Document (273793)
The information in this article applies to:
- Microsoft Internet Explorer (Programming) 5
- Microsoft Internet Explorer (Programming) 5.01
- Microsoft Internet Explorer (Programming) 5.01 SP1
- Microsoft Internet Explorer (Programming) 5.5
This article was previously published under Q273793 SUMMARY
When you return HTML from an XML/XSL transform, you often have to return SCRIPT blocks. For example:
<SCRIPT LANGUAGE="javascript">
function someFunction()
{
//Your code here.
}
</SCRIPT>
This article describes how you can include the DEFER attribute for the <SCRIPT> tag when you include a script function in an XSL document that is used in a client-side XML/XSL transform. NOTE: You only need the DEFER attribute when you manually perform the XML/XSL transform in client-side script. You do not need this attribute in a server-side XML transform, or if the transform is performed when navigating to a static XML file that links to the XSL document.
REFERENCES
For more information on the SCRIPT element, see the following Microsoft Developer Network (MSDN) Web site:
For more information about XML, see the XML Reference at the following MSDN Web site:
For more information about Microsoft Windows Script Technologies, see the following MSDN Web site:
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Modification Type: | Major | Last Reviewed: | 5/11/2006 |
---|
Keywords: | kbDHTML kbFAQ kbhowto KB273793 |
---|
|