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

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

Subject: RE: : 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
cocoon loadxml
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: : 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: : 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: : 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

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