How to extend the content model of <b> element in XHTML1.1

admin

Administrator
Staff member
Hi,
I tried alot and I coundn't find a solution to my problem. Any help is greatly appreciated. The problem is, I have downloaded the default 'XHTML11.dtd' driver from w3c to a folder in my project(.NET project) and I am validating my XHTML docs i.e. .aspx pages against this dtd. When my page is rendered in 'application/xhtml+xml' content I am getting an error "Content model of element 'b' disallows element 'u'". I know content model for element <b> which is in 'xhtml-pres-1.mod' (this module further references "xhtml-inlpres-1.mod") disallows element <u>. So, I want to add element <u> to element <b>'s content model to underline some text in my rendered document. For example, like this '<b><u>some text</u></b>'. But I want to do this by referencing element <b> in my 'My-XHTML11.dtd'. So, the actual element wil be in public 'xhtml-pres-1.mod' but I want to extend it's default content model.
Thanks for your time and help.
 
Back
Top