TRUE, True, true, and FALSE, False, false

I'm just in rant mode the last few days, trying to get my head wrapped about 3000 posts by Oren (who just happens to be an android and takes his orders from his dog) and 3000 posts on the altnetconf mailing list in the last 30 days (yes, 100 new messages a day and so many blog entries to come, somehow...)

However this is just plain rude:

clip_image001

This is the XML "Intellisense" in Visual Studio 2005/2008.

Yeah, 6 definitions of True and False.

Let me qualify this post which I should have done in the first place. This screenshot was for an XML file in SharePoint and the options presented in Intellisense are completely driven by your XSD. So really my brain wasn't working yesterday when I blamed the IDE for this as it's only as dumb as it can be told.

However, I guess if I was building the tool and the attribute was a boolean value I would only present two options "True" and "False" so maybe it is a deficiency of the IDE.

Or the XSD.

Or SharePoint.

Or me.

All of the above? Yeah, probably.

Published Thursday, December 06, 2007 9:04 PM by Bil Simser
Filed under: ,

Comments

# re: TRUE, True, true, and FALSE, False, false

Thursday, December 06, 2007 11:53 PM by jeff doolittle

reminds me of that scene in "Singing in the Rain" where the audio gets off track with the video: "no, no, no", "yes, yes, yes"!

# re: TRUE, True, true, and FALSE, False, false

Friday, December 07, 2007 12:07 AM by Ayende Rahien

Actually, that is probably there as a result of the definition in the XSD of this document, not because of VS.

What are you editing?

# re: TRUE, True, true, and FALSE, False, false

Friday, December 07, 2007 3:39 AM by weareu

Shis dude, you ripping in VS? Dude, you really must find yourself some new friends! There is no standard XML intellisense since there is no standard for XML attributes...

# re: TRUE, True, true, and FALSE, False, false

Friday, December 07, 2007 6:40 AM by Jamie

That is only incorrect behaviour if your property isn't case sensitive...

# re: TRUE, True, true, and FALSE, False, false

Friday, December 07, 2007 7:45 AM by RichardD

There's obviously something wrong with your XSDs - I only get "true" or "false".

# re: TRUE, True, true, and FALSE, False, false

Friday, December 07, 2007 9:00 AM by Brett

Me, too, I only get the lowercase options.  Though in VS2005 I used to only get the True and False options (capital first letter).

# re: TRUE, True, true, and FALSE, False, false

Saturday, December 08, 2007 12:53 PM by Wade Wegner

I'm pretty sure this is defined in the CoreDefinitions.xsd file under C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML.

 <xs:simpleType name="TRUEFALSE">

   <xs:restriction base="xs:string">

     <xs:enumeration value="TRUE" />

     <xs:enumeration value="FALSE" />

     <xs:enumeration value="True" />

     <xs:enumeration value="False" />

     <xs:enumeration value="true" />

     <xs:enumeration value="false" />

   </xs:restriction>

 </xs:simpleType>

This is part of the schemas.microsoft.com/sharepoint namespace.

# re: TRUE, True, true, and FALSE, False, false

Monday, December 10, 2007 5:17 PM by Steve O

Yet another reason not to do any SharePoint development.