Thread View: pl.comp.xml
2 messages
2 total messages
Started by Robert
Tue, 15 Jan 2008 14:08
Problem z zapisaniem transformacji
Author: Robert
Date: Tue, 15 Jan 2008 14:08
Date: Tue, 15 Jan 2008 14:08
41 lines
1776 bytes
1776 bytes
Witam, chcialbym transformowac xml na palmtopie (WM6), ale poniewaz mam
trudnosci z uruchomieniem jscriptu czy vbscriptu, postanowilem wykorzystac ie.
<html>
<body>
<script type="text/javascript">
// Load XML
var xml = new ActiveXObject("Microsoft.XMLDOM")
xml.async = false
xml.load("test.xml")
// Load XSL
var xsl = new ActiveXObject("Microsoft.XMLDOM")
xsl.async = false
xsl.load("test.xslt")
// Transform
//to dziala:
//document.write(xml.transformNode(xsl))
sXML = xml.transformNode(xsl)
//to nie zapisuje:
sXML.save("htmll.html")
//probowalem tez tak, ale takze nie zapisuje:
//var xmlDoc = new ActiveXObject("Microsoft.XMLDOM")
//xmlDoc.loadXML(xml.transformNode(xsl));
//xmlDoc.save("htmll.html");
</script>
</body>
</html>
jaki popelniam blad i jak go naprawic?
Pozdrawiam Robert
--
Wysłano z serwisu OnetNiusy: http://niusy.onet.pl
Re: Problem z zapisaniem transformacji
Author: szomiz
Date: Tue, 15 Jan 2008 15:11
Date: Tue, 15 Jan 2008 15:11
40 lines
1886 bytes
1886 bytes
Użytkownik "Robert" <roblegWYTNIJTO@poczta.onet.pl> napisał w wiadomości
news:68ae.000000da.478cbe5e@newsgate.onet.pl...
> Witam, chcialbym transformowac xml na palmtopie (WM6), ale poniewaz mam
> trudnosci z uruchomieniem jscriptu czy vbscriptu, postanowilem wykorzystac
> ie.
>
> <html>
> <body>
>
> <script type="text/javascript">
>
> // Load XML
> var xml = new ActiveXObject("Microsoft.XMLDOM")
Msxml2 dalej na palmach nie dziala?
> xml.async = false
> xml.load("test.xml")
>
> // Load XSL
> var xsl = new ActiveXObject("Microsoft.XMLDOM")
> xsl.async = false
> xsl.load("test.xslt")
>
> // Transform
> //to dziala:
> //document.write(xml.transformNode(xsl))
>
>
> sXML = xml.transformNode(xsl)
> //to nie zapisuje:
Co to znaczy sie nie zapisuje?
Wynik transformacji na pewno jest xml'em?
I w jakim celu potrzebujesz to zapisac?
sz.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads