sg

Cumartesi, Ocak 14, 2006

Re: V2 Xslt support


Has anyone tried including and xslt stylesheet link in their xml file?
I have just a normal xml page with this in the xml:
<?xml-stylesheet type="text/xsl" href="essentials/style/dyne1.xsl" ?>

By normal, I mean it is just xml transformed with the xslt. It looks
like a normal web page, but if you view source, it shows only the xml
file.
Here is what I mean: http://factor1.net/xml/index.xml

I didn't think it would work for infowindows, but it looks like just an
xml, so I am going to try using it just like a normal xml:

// Read the data from example.xml
var request = GXmlHttp.create();
request.open("GET", "example.xml", true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
var xmlDoc = request.responseXML;
// obtain the array of markers and loop through it
var markers =
xmlDoc.documentElement.getElementsByTagName("marker");

and parse it like normal. I want a simple way for people to do the xsl
thing, but without having to change the map code.

I will try to get an answer this weekend, but if anyone has experience
doing this, I am curious!

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık