开发者

How to Create A Document Type Definition

I've been creating a lot of my own custom attributes in my XHTML documents lately, and am aware that because they are custom attributes, they won't validate against the W3C standard.

Isn't it true that I can specify my own DTD to make it validate? If so, can开发者_C百科 anyone tell me what's involved in doing this in an ASP.NET MVC app?

Thanks

Dave


Isn't it true that I can specify my own DTD to make it validate?

Valid. Non-standard. No guarantee that it will work.

If so, can anyone tell me what's involved in doing this in an ASP.NET MVC app?

http://www.vivtek.com/xml/writing_dtd.html should get you started. There server side language doesn't matter, it is just a markup thing.


You can use your own namespace, that way you can use your custom attributes and still have a valid document. Facebook uses it too for their login control on 3th party websites.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜