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

RE: Re: Pass a DOM as an XSLT parameter?

Subject: RE: Re: Pass a DOM as an XSLT parameter?
From: cknell@xxxxxxxxxx
Date: Mon, 15 Dec 2003 13:00:29 -0500
ixmldomdocument loadxml
Thanks. I've been using command-line transforms for a long time and I was just stuck in that mindset.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Sent:     Mon, 15 Dec 2003 07:15:45 +0100
To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:   Re: Pass a DOM as an XSLT parameter?


<cknell@xxxxxxxxxx> wrote in message
news:B0018802841@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I've been asked to process two XML documents with one XSLT stylesheet. One
document exists in the file system and the other exists in memory as the
result of a SQL Server 2000 "for XML" query. In an ideal world, I would
write a stylesheet to process the file-system XML document and bring the
in-memory XML document into the transformation via the document() function.
Since the document() function takes as a parameter a URI, and since I can't
think of a way to give a URI to the in-memory document, I'm stumped. I've
thought of creating a DOM from the in-memory XML and passing the DOM as a
parameter, but I'm pretty sure that won't work.

Why, this is a typical operation using the MSXML4 API

Read about IXSLProcessor.addParameter() method. You'll have to pass to it a
node-set as a parameter.

If you have the "in-memory" xml document represented as a string, you will
have to pass this string to the IXMLDOMDocument.loadXML() method, then you
will pass the root node of the returned tree as parameter. Look for examples
in your MSXML4 SDK documentation.


==== Cheers,

Dimitre Novatchev.
http://fxsl.sourceforge.net/ -- the home of FXSL




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

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-2013 All Rights Reserved.