Jump to content

What the heck?


Recommended Posts

This is the first time I've seen code like this in any webpage, does anyone have any info on what it is?

<div id="shownav">  <ul>    <li xmlns:msxsl="urn:schemas-microsoft-com:xslt"><a href="http://www.g4tv.com/attackoftheshow/index.html" title="Home">Home</a></li>    <li xmlns:msxsl="urn:schemas-microsoft-com:xslt"><a href="http://www.g4tv.com/attackoftheshow/videos/index.html" title="Videos">Videos</a></li>    <li xmlns:msxsl="urn:schemas-microsoft-com:xslt"><a href="http://www.g4tv.com/attackoftheshow/features/index.html" title="Features">Features</a></li>    <li xmlns:msxsl="urn:schemas-microsoft-com:xslt"><a href="http://www.g4tv.com/attackoftheshow/episodes/index.html" title="Episodes">Episodes</a></li>    <li id="PageTemplate_objNavigation_ShowNavMore">      <select onChange="MM_jumpMenu('parent',this,0)">        <option>MORE</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/schedule/index.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Schedule</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://forums.g4tv.com/categories.cfm?catid=59" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Forums</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/newsletters.aspx" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Newsletter</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/features/50431/Chat_With_Attack_of_the_Show_Staffers.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Chat</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/photo_gallery/277/Our_Beloved_Cast_of_Characters/index.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Meet the Staff</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/features/51231/The_Sarah_Lane_Files.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Sarah's Links</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/features/52051/CONTACT_AOTS.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Contact AOTS</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/features/51537/Free_Play_Friday.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">Free Play Friday</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/features/51555/Attack_of_the_Show_Shorts.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">AOTS Shorts</option>    <?xml version="1.0" encoding="utf-16"?><option value="http://www.g4tv.com/attackoftheshow/features/47864/Check_Out_Our_Attack_of_the_Show_Webcams.html" xmlns:msxsl="urn:schemas-microsoft-com:xslt">AOTS Webcams</option>  </select></li></ul></div>

here is the link where I got this from: http://www.g4tv.com/attackoftheshow/episodes/index.html

Link to post
Share on other sites

I have never seen this either but they seem to be incorporating xml somehow...it is weird they are repeating hte xml declaration line over and over

<?xml version="1.0" encoding="utf-16"?>

Not sure why? Weird....maybe they used Frontpage....lol that generates lots of useless, bloated code. :)

Link to post
Share on other sites
xmlns:msxsl="urn:schemas-microsoft-com:xslt"

<?xml version="1.0" encoding="utf-16"?>

yup. I was also puzzled. Frontpage huh? I never have used that. Though if I ever use a visual editor, I always check my code to make sure it didn't add any funny stuff.

Link to post
Share on other sites
xmlns:msxsl="urn:schemas-microsoft-com:xslt"

<?xml version="1.0" encoding="utf-16"?>

yup. I was also puzzled. Frontpage huh? I never have used that. Though if I ever use a visual editor, I always check my code to make sure it didn't add any funny stuff.

With frontpage (Microsoft) you can check your code all you want and even change it conform to standards but as soon as you switch to Design view it is reformatted and screwed up again.I hate Frontpage....MS also desided to bring some of that junk over to visual studio 2003....thats why I hate using it so much at work. I write well formed XHTML 1.0 strict and then the program changes it to nasty bloated HTML 4.01.I hear VS 2005 is supposed to be better with this but I don't know yet.I personally hate Editors and avoid them at all costs. I even compile my ASP.Net code manually and use Notepad to write eveything.:)
Link to post
Share on other sites
With frontpage (Microsoft) you can check your code all you want and even change it conform to standards but as soon as you switch to Design view it is reformatted and screwed up again.I hate Frontpage....MS also desided to bring some of that junk over to visual studio 2003....thats why I hate using it so much at work. I write well formed XHTML 1.0 strict and then the program changes it to nasty bloated HTML 4.01.I hear VS 2005 is supposed to be better with this but I don't know yet.I personally hate Editors and avoid them at all costs. I even compile my ASP.Net code manually and use Notepad to write eveything.:)

That sucks. Well I'm staying far away from that editor :S. I use the UltraEdit-32 text editor to edit my code, it has worked wonders for me, I started using it when I found out that notepad was what cavemen used (No offenese there :)")
Link to post
Share on other sites
That sucks. Well I'm staying far away from that editor :S. I use the UltraEdit-32 text editor to edit my code, it has worked wonders for me, I started using it when I found out that notepad was what cavemen used (No offenese there :)")

There is nothing wrong with using an editor...I just prefer to have complete control over my code. I always suggest that people learn to hand code first though, before they start using an editor.Editors help productivity.
Link to post
Share on other sites

Yeah I hate MS Frontpage :) I always code in code view. I like the split view because you can get to a particular location in your page very fast. That's pretty much the only reason I use design view... Other than that it's crap lol. It screws up everything you do. It adds so much code in your page that it doesn't make any sens!Hand-coding rules! :)

Link to post
Share on other sites

Wasn't the topic about the weird code? Anyway, back to the topic... I think that

xmlns:msxsl="urn:schemas-microsoft-com:xslt"

is some kind of Microsoft's version of XSLT perhaps. As for why it was used on the first place... I have no idea.

Link to post
Share on other sites
Wasn't the topic about the weird code? Anyway, back to the topic... I think that
xmlns:msxsl="urn:schemas-microsoft-com:xslt"

is some kind of Microsoft's version of XSLT perhaps. As for why it was used on the first place... I have no idea.

Yeah it got off topic when I mentioned MS Frontpage adds extra code...perhaps that is the reason this was added.I know if a Word Doc is saved as an HTML page there is a ton of XML junk added (a 100 times worse than this code) so perhaps it is from another MS product...wouldn't be surprised.
Link to post
Share on other sites
Guest Stonebender

I have seen MS Frontpage insert certain coding to allowing visual applications to connect attaching to the code you already have in view. Once you goto main it then adds this type of code to conform to server extensions. It also disorganizes and jumbles up alot. Edit Plus 2 is a good color coded program to notice anomalies like this in the future.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...