|
|
Is there such a thing as an XSD that describes, in schema definition terms, all the HTML element tags, their attributes, and also, very importantly, the style attributes one can use on specific HTML element tags?
Yes, I've googled but haven't found anything yet - lots of web pages describing HTML elements, tags, and styles, lots of pages on HTML DOM, but no single machine readable schema. It must be there somewhere, right?
So, I'm looking for an XSD that describes the HTML DOM, though I'm not interested in access methods, and I am interested in the allowable style attributes, and I want it in XSD format, though some other format would be acceptable as well.
Thanks!
Marc
|
|
|
|
|
If you look under the hood on how Visual Studio validates html, you can find xsd files deep down in its folders. You should be able to use one of them right away or build one from scratch yourself.
I have VS 2010 and in my system, the files are in in C:\program files\Microsoft Visual Studio 10.0\Common7\Packages\schemas\html
|
|
|
|
|
Shameel wrote: I have VS 2010 and in my system,
Hmm, it's not there for me. I'll have to poke around, but that's also a great starting place. Thanks!
Marc
|
|
|
|
|
I have it in VS2012. I can send you the files you want.
There are (for HTML):
* HTML5
* HTML 4.01
* XHTML5
* XHTML Frameset
* XHTML Strict 1.1
* XHTML Transitional
There are also the following:
* ASAX
* ASP Head Content
* i18Languages (whatever that is)
* SVG
* XLink
* XML
There are also two .tlb files: w3c-dom1.tlb and w3c-dom1-strict.tlb. I don't know what those are for (DOM Parsing?)
Also, do you have the Web Developer option installed? That may be where these come from.
Keep Clam And Proofread
--
√(-1) 23 ∑ π...
And it was delicious.
|
|
|
|
|
Brisingr Aerowing wrote: I have it in VS2012. I can send you the files you want.
I found them in the Program Files (x86) folder. Thanks very much though for your offer!
Marc
|
|
|
|
|
For me it is in \Program Files (x86) folder.
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\schemas\html
|
|
|
|
|
Yusuf wrote: For me it is in \Program Files (x86) folder.
Ah yes, found it there. Thanks!
Marc
|
|
|
|
|
There is no single HTML definition, there are many: one for each version of HTML and XHTML. Each of these definitions has an official, W3 sanctioned document type definition file. These dtd files are used in every properly formatted DOCTYPE declaration. These can easily be converted to xsd; in fact, the W3 has a Perl script that will do just that[^].
It seems to me that all you need to do is find the DOCTYPE declaration for the version of (X)HTML that interests you, and convert it. Easy peasy.
|
|
|
|
|
beat me to it..
|
|
|
|
|
|
|
Nicholas Marty wrote: You can convert the DTD to XSD directly through a tool from w3.org:
Very cool. Thank you!
Marc
|
|
|
|
|
HTML is a SGML spec which has elements that can't be represented in XSD. XHTML was an attempt to build an XSD'able spec.
|
|
|
|
|
Andy Brummer wrote: HTML is a SGML spec which has elements that can't be represented in XSD. XHTML was an attempt to build an XSD'able spec.
Well, I'm only looking for close, not perfect. Thanks for info, I'll explore XHTML.
Marc
|
|
|
|
|
|
This guy called in a bomb hoax[^] because he had forgotten to book the wedding venue!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
That means that the anti-ter'r'rist squad had to spend a whole half day not sitting on their arses!
The poor dears!
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Quite frankly I can't blame him, I'll take the cops over a mad Mrs. any day.
|
|
|
|
|
What a class-A knob!
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|
|
Am I the only one who thinks this plan was genius?
His only mistake was in failing to hold his nerve under questioning.
Maybe his missus was giving him so much grief after he came back he fancied a short stay in prison too.
“I believe that there is an equality to all humanity. We all suck.” Bill Hicks
|
|
|
|
|
Gangsters only go to jail because they want to.
|
|
|
|
|
Texas. 'Nuff said.
|
|
|
|
|
I have been using DevExpress CodeRush for a few days now, and I really like it. It makes finding possible errors easy, and has a lot of useful code generation options, like create missing constructors for custom exceptions.
How many people here use/have used CodeRush, and what was your experience with it.
I am currently using version 13.1.7.
Keep Clam And Proofread
--
√(-1) 23 ∑ π...
And it was delicious.
|
|
|
|
|
I used it for a while. It's refactoring and suggestions were reasonably ok but what really put me off it was the amount of refactoring "chatter". That is, the popups and code suggestions took up so much space they got in the way of the code. To be honest, I think it probably does or can do things better than Resharper which I use but CodeRush was too much in your face and cluttered the IDE. On balance, RS's IDE is much "quieter".
I reported my observations to the DE team. Whether anything changed, I don't know.
If there is one thing more dangerous than getting between a bear and her cubs it's getting between my wife and her chocolate.
|
|
|
|