Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: one xml two xsl

From: crajeshwar@-----.---
To: 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.





transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent