[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: document() function and error-handling

Subject: Re: document() function and error-handling
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 03 Jan 2008 18:55:17 +0100
Re:  document() function and error-handling
Joe Fawcett wrote:

Well you could always write your own doc-available() function using an msxsl:script element and the FileSystemObject.

Or simply, as there are already parameters
<xsl:param name="framework-map-file"/>
<xsl:param name="app-map-file" />
which you set before you run the transformation, instead of passing in a URL you can pass in an MSXML DOMDocument itself only if the document loads fine e.g. assuming you use VBScript and MSXML 3 you do


<xsl:param name="framework-maps" select="/.."/>


Set xmlDoc = Server.CreateObject("Msxml2.DOMDocument.3.0") xmlDoc.async = False If xmlDoc.load(Server.MapPath("file.xml")) Then xslProcessor.addParameter "framework-maps", xmlDoc Else ' handle xmlDoc.parseError here End If


--


	Martin Honnen
	http://JavaScript.FAQTs.com/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.