Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/89.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html DTD中img src文件的属性类型语法_Html_Css_Xml_Xslt_Dtd - Fatal编程技术网

Html DTD中img src文件的属性类型语法

Html DTD中img src文件的属性类型语法,html,css,xml,xslt,dtd,Html,Css,Xml,Xslt,Dtd,当我验证我的DTD文件时,我得到这个错误->必须为元素类型概要声明属性类型。 如何编辑DTD文件以删除此错误 外部DTD !ELEMENT profile ANY XML文件 <profile type="jpeg">C:\Users\username\Desktop\image3.jpg</profile> XSL文件 <td rowspan="6" align="left" style="color:#C0C0C0;"> <img src="{p

当我验证我的DTD文件时,我得到这个错误->必须为元素类型概要声明属性类型。 如何编辑DTD文件以删除此错误

外部DTD

!ELEMENT profile ANY
XML文件

<profile type="jpeg">C:\Users\username\Desktop\image3.jpg</profile>
XSL文件

<td rowspan="6" align="left" style="color:#C0C0C0;"> <img src="{profile}" />

我必须删除标记,以便它在堆栈溢出时显示。

将DTD中的属性声明为:

<!ELEMENT  profile       (#PCDATA)*                 >
<!ATTLIST  profile
             type        CDATA            #IMPLIED  >