RE: [xsl]: How to handle two XML sources in one style sheet

Subject: RE: [xsl]: How to handle two XML sources in one style sheet
From: "Uronis, Jeremy" <Jeremy.Uronis@xxxxxxxxxxxxx>
Date: Mon, 01 Oct 2001 15:23:57 -0400
right, i do something like this in my ASP.


var xmlMenu;
var xmlContent;
var xslDoc;

xmlMenu = Server.CreateObject("MSXML2.DOMDocument");
xmlContent= Server.CreateObject("MSXML2.DOMDocument");
xslDoc= Server.CreateObject("MSXML2.DOMDocument");

xmlMenu.loadXML( <CALL COM OBJECT TO RETURN XML STRING> );
xmlContent.loadXML( <CALL COM OBJECT TO RETURN XML STRING> );
xslDoc.load("MyStyles.xsl");  // load from file


Response.Write(xmlContent.transformNode(xslDoc)); // apply the style sheet
to the content.

at this point the menu xml wasn't processed. i want to have
that processed at the same time in the same stylesheet.

Jeremy

-----Original Message-----
From: Chris Bayes [mailto:chris@xxxxxxxxxxx]
Sent: Monday, October 01, 2001 2:57 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: [xsl]: How to handle two XML sources in one style sheet


Woohh,
You really don't want them as strings. You really want to pass a dom as
an object and then use that in the transform.

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Uronis, Jeremy
> Sent: 01 October 2001 17:41
> To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
> Subject: RE: [xsl]: How to handle two XML sources in one style sheet
> 
> 
> ok, 
> 
> i have all the xml data in strings in my Active Server
> pages. how do i get this info into my stylesheet?
> pass them in as params or what?
> 
> Thanks - jeremy
> 
> -----Original Message-----
> From: cutlass [mailto:cutlass@xxxxxxxxxxx]
> Sent: Monday, October 01, 2001 11:20 AM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl]: How to handle two XML sources in one style sheet
> 
> 
> ok,
> 
> next step is to either
> 
> a) have a native xml repository that generates valid xml and 
> sends it out via http ( think Tamino ), so document call can access it
> b) generate on the fly valid xml from your database
> c) generate xml files
> 
> i would initially start with option b, but if u are using 
> cocoon i am certain that there are cocoon specific better 
> ways, any cocoon experts out there?
> 
> using option b, there are many libraries and tools out there 
> to generate xml from a database, all of which have a little 
> bit of a learning curve.
> 
> good luck, jim fuller
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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