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

dynamic xsl transformation

Subject: dynamic xsl transformation
From: "Jennifer Hochgesang" <jenniferh@xxxxxxxxxxxxxx>
Date: Thu, 23 Aug 2001 14:39:41 -0500
xsl transformation html innerhtml
I would like to transform xml files into html with an ability to dynamically
change the applied xsl template so that our writers can write into a GUI
interface and then view or edit what they have done. I have been trying to
do this using javascript and asp with no luck. It is driving me crazy b/c
there are thousands of examples out there for what I want to do esp this
simple ASP, see below. Viewed in my browser it is definitely loading the
xsl, but is not pulling in the xml data.


<%
'Declare local variables
Dim XMLDoc, XSLDoc

set XMLDOC = Server.CreateObject("Microsoft.XMLDOM")
set XSLDOC = Server.CreateObject("Microsoft.XMLDOM")

XMLDOC.async = false
XMLDOC.load(Server.MapPath("BA010.xml"))

XSLDOC.async = false
XSLDOC.load(Server.MapPath("presentation.xsl"))

Response.Write(XMLDOC.documentElement.transformNode(XSLDOC.documentElement))
%>


Or my javascript-
This works locally, but not on my webserver (out-sourced) obviously denotes
a server issue, but does anyone have a workaround-
<script language="javascript">
<!--
function StartUp(){
var DataSource=new ActiveXObject("microsoft.xmldom");
DataSource.load("BA010.xml");
var XslStyle=new ActiveXObject("microsoft.xmldom");
XslStyle.load("presentation.xsl");
document.all.item("xslcontainer").innerHTML=DataSource.transformNode(XslStyl
e.documentElement);
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" onLoad="StartUp()">
<SPAN ID="xslcontainer"></Span>

Any assistance or direction would be greatly appreciated. (If I declare the
xsl in my xml, it loads perfectly both locally as well as online.)

Thanks,
jennifer



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