This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: : How to handle two XML sources in one style sheet
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl]: How to handle two XML sources in one style sheet
- From: "Uronis, Jeremy" <Jeremy dot Uronis at usa dot xerox dot com>
- Date: Mon, 01 Oct 2001 15:23:57 -0400
- Reply-To: xsl-list at lists dot mulberrytech dot com
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@bayes.co.uk]
Sent: Monday, October 01, 2001 2:57 PM
To: xsl-list@lists.mulberrytech.com
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@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Uronis, Jeremy
> Sent: 01 October 2001 17:41
> To: 'xsl-list@lists.mulberrytech.com'
> 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@secure0.com]
> Sent: Monday, October 01, 2001 11:20 AM
> To: xsl-list@lists.mulberrytech.com
> 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