|
I think I'll count this for my work for the day and take a nap.
|
|
|
|
|
You neutered the hamsters?
Software Zen: delete this;
|
|
|
|
|
Well it was required.
speramus in juniperus
|
|
|
|
|
It was more of a just a threat, really.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
|
You just can't trust these wild animals[^]
They have no respect at all for statistics, predictions, and the plans you make.
“I believe that there is an equality to all humanity. We all suck.” Bill Hicks
|
|
|
|
|
|
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.
|
|
|
|