is possible [REWRITE, ADD, EXTEND] a element of DTD?
Posted: Mon Oct 28, 2019 8:49 pm
hello,
I need use/create XHTML documents.
by years I use this four lines:now I need add my own group of TAGS:
mytagone,
mytagtwo,
...
I try with:but https://validator.w3.org/ ever reply:
becouse ELEMENT body defined in the DTD http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd no´t include the ELEMENT (tag) "<mytagone>".
How I can:
Thanks by your help!
I need use/create XHTML documents.
by years I use this four lines:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es">
<head>.
.
.
</head><body>...
mytagone,
mytagtwo,
...
I try with:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
[
<!ELEMENT mytagone (#PCDATA>
<!ELEMENT mytatwo (#PCDATA>
<!ELEMENT mytagtree (#PCDATA>
]>
why?document type does not allow element "mytag" here
becouse ELEMENT body defined in the DTD http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd no´t include the ELEMENT (tag) "<mytagone>".
How I can:
- Load the external DTD http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
- ADD my own DTD with my own group of TAGS
Thanks by your help!