Re: [xsl] XML Data Islands, XML Menu Trees and other stuff

Subject: Re: [xsl] XML Data Islands, XML Menu Trees and other stuff
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Tue, 30 Nov 2004 12:19:29 -0700
Coming from a Windows-based world is forcing me to learn things I never would have taken to time to learn in the past. It seems that both IE and Mozilla were reading the charset value of the Content-Type in the response header:

Content-Type: text/html; charset=iso-8859-1

I'm guessing that because the Content-Type value was the same then it didnt matter that the document specified itself as utf-8, it was sticking witf the headers charset value. Again, guess. but given the results we were all seeing it seems to make sense...

Anyway, WAY OFF TOPIC!!!!


As I said I just finished that and it seems to be happy with the result ad Firefox and IE are defaulting to UTF-8 encoding correctly. I have had a chance to do a quick menu but as soon as I can eat something I will... I will post small samples at a time on the blog that will slowly help bring together the entire application over the next two days... oh, wait.. I need to be in Seattle tomorrow... well, I guess I will be working from the hotel then which is nothing different than where Im working from now so the only thing I wll lose is a few hours of travel time...


Ill ping the list when there are enough samples to suggest a more complete solution. If anybody wants quicker updates than that subscribe to one of the 4 site feeds at http://www.xsltblog.com

Oh, and in case anybody in interested I am about to post some links to some pics I took of a steaming Mt.St. Helens a week or two ago when I flew from Seattle to Salt Lake.

Cheers!

<M:D/>

xptm@xxxxxxx wrote:

Wow, that looks great :)

In the meantime i've been playing with the XmlHttpRequest and it really works on
IE and FF, at least. So it seems it's not dificult to get the XML files without
a all trip to the server.

Now for XSLTing the XML i think i'll wait for your example...

Thanks a lot.

Citando "M. David Peterson" <m.david@xxxxxxxxxx>:



xptm@xxxxxxx wrote:



Hi David, and all.

OT i just went to XSLT:Blog and where it should appear (i added the spaces)
I ' m
appears
I b $ (TM) m




Both IE and Firefox(and Im assuming other Mozilla based browsers) that
are set to auto detect encoding decide that utf-8 is actually
iso-8859-1.  Given that they both do it my assumption is that there is
some obscure line in the HTML causing this to happen as I find it
strange that both algorithms would read the byte stream in the same way
and determine iso-8859-1 instead of the proper utf-8.  The charset is
clearly defined as utf-8

<meta snip... content="text/html; charset=utf-8" />

So I really dont know whats up...  I cant be the only MT install that has
this problem so as soon as I have a chance I will look further into it.

In the mean time manually change your browser to recognize the page as UTF-8
and youll be fine, all be it temporary.



Now on-topic, i've been searching for info in places like w3schools, and it
gives me the impression that XML data islands and related techniques are


very


tyied to IE browser, like HTML elements binding, XML HTTP requests, etc....


Also


i saw that XML data islands has nothing to do with W3C...

Is this correct?




No... It does take some trickery but its possible and really quite easy
once you understand the process that needs to take place.



My boss suddenly give a high priority to this going-to-be project, so let me
elaborate a little more for you to see if this falls in your techniques.

Do you think you techniques can be adaptable to this, or should i start


looking


elsewere?

Regards.

Basically, my intention is to have a menu tree that, when cliked on a node,
would do a trip to the server to get some XML that could be a sub-menu
definition to display dinamically, or a XML ResultSet from a db to display


via


XSL/CSS/CSS2, or even a HTML page to display on a frame (altougt i don't


like


frames). I want to do this dinamically, specially without refreshing the
browser, as this has a tendency to become very heavy.




In fact this a perfect example of how this could be used...  In fact
that would be a simple demo to quickly create... instead of stressing
over this larger piece let me feed it to you in bit size morsels as it
will probably be easier to understand initially and from there is just
adding one more source of data at a time and using that data to
coordinate proper context between the elements between rendered...

Give me a bit to rethink how best to showcase this and I will return
with a sample...


Cheers!


<M:D/>

Current Thread