Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: one xml two xsl >Thread Next - Re: one xml two xsl Re: one xml two xslTo: NULL Date: 2/2/2008 5:40:00 AM On Jan 18, 10:28=A0pm, "Christophe 83" <c_vi...@hotmail.com> wrote: > Hi, > > I have found a sample a script it is ok wonderfull > tank > > I copy the sample if anyone need it ... > > Just another small question, but I don't think it is the good place here..= > Every time I want open html file with script I have a security warning. ho= w > can I discard it > > . > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > > <html xmlns=3D"http://www.w3.org/1999/xhtml" > > > <head> > > <title>Untitled Page</title> > > </head> > > <body> > > <script type=3D"text/javascript"> > > // chargement du fichier XML > > var xml =3D new ActiveXObject("Microsoft.XMLDOM") > > xml.async =3D false > > xml.load("ping.xml") > > // chargement du fichier XSL > > var xsl =3D new ActiveXObject("Microsoft.XMLDOM") > > xsl.async =3D false > > xsl.load("ping.xsl") > > // transformation en Html > > document.write(xml.transformNode(xsl)) > > </script> > > </body> > > </html> > > "Martin Honnen" <mahotr...@yahoo.de> a =E9crit dans le message de news: > %23oVdlueWIHA.1...@TK2MSFTNGP02.phx.gbl... > > > > > Christophe 83 wrote: > >> I think I don't explain very well what I want > > >> 1) I have a file "data.xml" which is very important I dont like copy it= . > >> 2) I would like be able to have some view of the data (not all data) in= > >> explorer. > > >> I haved imagine write : > >> - "view1.xsl" > >> - "view2.xsl" > >> - ..... > > >> and : > >> - "view1.htm" (including data.xml and view1.xsl) > >> - "view2.htm" (including data.xml and view2.xsl) > > > I have already suggested to use script in an HTML document to perform th= e > > transformation. So what you want is possible, yes, you simply need to us= e > > script in view1.htm and view2.htm to load data.xml and view<x>.xsl to > > apply the transformation and render the result. > > > -- > > > Martin Honnen --- MVP XML > >http://JavaScript.FAQTs.com/- Hide quoted text - > > - Show quoted text - hi, i have a similar problem i am using same script code but i need to load two xml files at a time for this i have tried with fallowing code var xml =3D new ActiveXObject("Microsoft.XMLDOM") xml.async =3D false xml.load("ping.xml") xml.load("pingone.xml") but its loading only pingone not the previous i have also tried with var xml =3D new ActiveXObject("Microsoft.XMLDOM") xml.async =3D false xml.load("ping.xml") var xml1 =3D new ActiveXObject("Microsoft.XMLDOM") xml1.async =3D false xml1 =3D xml.loadBindingDocument("pingone.xml") this is giving an error can u suggest me. | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
