Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 25th, 2005, 03:38 PM
Banned
 
Join Date: Jul 2005
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
Default transformNode w/2 source XML docs?

I'm using this method to convert an XML doc & XSLT stylesheet to an XHTML file:
Code:
<%
'Load XML
Dim xml = Server.CreateObject("Microsoft.XMLDOM")
xml.async = false
xml.load("http://DOMAIN/DIRECTORY/FILENAME.xml")

'Load XSL
Dim xsl = Server.CreateObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("http://DOMAIN/DIRECTORY/FILENAME.xsl")

'Transform file
Response.Write(xml.transformNode(xsl))
%>
...but how would I go about converting 2 or more XML docs and 1 XSLT stylesheet into one XHTML file? I understand that I probably need to add another XML doc to load in this file, like this:
Code:
'Load XML
Dim xml1 = Server.CreateObject("Microsoft.XMLDOM")
xml1.async = false
xml1.load("http://DOMAIN/DIRECTORY/FILENAME1.xml")

Dim xml2 = Server.CreateObject("Microsoft.XMLDOM")
xml2.async = false
xml2.load("http://DOMAIN/DIRECTORY/FILENAME2.xml")
...but how Do I actually go about transforming both XML docs & 1 XSLT stylesheet into one XHTML file with the "transformNode" method? Thanks for any help.

KWilliams





Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging 2 Xml docs nkuar XML 3 December 8th, 2005 05:22 AM
2 XML Docs > 1 XSLT Stylesheet kwilliams XSLT 3 September 12th, 2005 11:22 AM
How to compare nodes from 2 XML docs kwilliams XSLT 0 August 30th, 2005 01:43 PM
Multiple XML Docs/One XSLT Stylesheet kwilliams XSLT 5 August 4th, 2005 11:54 AM
Handling remote XML docs in ASP delbarcr XML 1 March 25th, 2004 11:23 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.