Incorporating multiple files into an Object in Word.
stylesheets.
What I have also done is to create another html page that uses
javascript to load the xml document and apply the stylesheet entirely
on the client side.
The reason I am doing this is so that I can embedd these files into
Word documents.
However, what I don't know how to do and whether it is possible is to
merge all 3 documents into one object, so when a user double clicks on
the object they will be shown the XHTML document in a rendered format on
their browser.
So, the files would be:
file.xml
style.xsl
render.html (contains the javascript to load the previous files and
transform the XML document using the XSL and writing it to the XHTML
doc.
Some additional information:
I generate an XML file - let's call it file.xml
There is a XSLT stylesheet that has been created based on the nodes of
the xml file.
If I insert this stylsheet into the XML file and host it onto a Web
Server, I see the XHTML file appear as expected.
However, because I want to view this file offline, meaning that I don't
want to host it on a WebServer but send the file locally to users, I
want the ability for the user to see the page by opening it up locally.
The only way I can do this is to put another file in the mix - let's
call it render.html.
This render.html file contains javascripts that loads both the XML and
XSL into memory and dispalys it on the browser.
The following code is behind the render.html
<html>
<body>
<script type="text/javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDO
xml.async = false
xml.load("file.xml")
// Load XSL
var xsl = new ActiveXObject("Microsoft.XMLDO
xsl.async = false
xsl.load("style.xsl")
// Transform
document.write(xml.transformNo
</script>
</body>
</html>
Now, what I want to do is to embedd all these 3 files into one object
so that when a user clicks on the objcet it will display the page on
the browser.
be many XML and associated render.html files created
Can I do this?

