Jump to content

What the heck?


Err

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 comment
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 comment
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 comment
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 comment
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 comment
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 comment
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 comment
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 comment
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 comment
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 comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...