๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #9638

Problem z zapisaniem transformacji

#9638
From: Robert
Date: Tue, 15 Jan 2008 14:08
41 lines
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
Technical Details
Message-ID: <68ae.000000da.478cbe5e@newsgate.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!news.nask.pl!news.nask.org.pl!news.onet.pl!newsgate.onet.pl!niusy.onet.pl
From: "Robert" <roblegWYTNIJTO@poczta.onet.pl>
Newsgroups: pl.comp.xml
Subject: Problem z zapisaniem transformacji
Date: 15 Jan 2008 15:08:31 +0100
Organization: Onet.pl SA
Lines: 41
Message-ID: <68ae.000000da.478cbe5e@newsgate.onet.pl>
NNTP-Posting-Host: newsgate.onet.pl
Mime-Version: 1.0
X-Trace: newsgate.test.onet.pl 1200406111 7205 213.180.130.18 (15 Jan 2008 14:08:31 GMT)
X-Complaints-To: abuse@onet.pl
NNTP-Posting-Date: 15 Jan 2008 14:08:31 GMT
X-Mailer: http://niusy.onet.pl
X-Forwarded-For: 83.18.54.78, 192.168.243.153
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.11)    Gecko/20071127 Firefox/2.0.0.11
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit