DTD?是地址元素块还是内联? [英] DTD? Is address element block or inline?

查看:75
本文介绍了DTD?是地址元素块还是内联?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力学习如何阅读我想要使用的DTD,
http://www.w3.org/TR/html4/strict.dtd

以确保我在阻止方面正确对待每个元素,

内联或流量(或者)。


<!ENTITY%block

" P | %标题; | %列表; | %预格式化; | DL | DIV | NOSCRIPT |

BLOCKQUOTE | FORM |人力资源|表| FIELDSET | ADDRESS">


<!ENTITY%flow"%block; | %inline;">


我读到的方式是包含ADDRESS的块元素。然而

与ADDRESS相关的下一个项目是


<!ELEMENT ADDRESS - - (%inline;)* - 关于作者的信息 - >

<!ATTLIST ADDRESS

%attrs; - %coreattrs,%i18n,%events -

I''m trying to learn how to read a DTD I wanted to use,
http://www.w3.org/TR/html4/strict.dtd
to ensure I was treating each element correctly in terms of being block,
inline, or flow (either).

<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">

<!ENTITY % flow "%block; | %inline;">

The way I read that was the block elements included ADDRESS. However
the next item related to ADDRESS was

<!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
<!ATTLIST ADDRESS
%attrs; -- %coreattrs, %i18n, %events --




在我看来,这个元素ADDRESS需要打开

和结束标签,是一个INLINE元素,可以省略,或者使用一次

或更多次。


任何人都可以向我解释一下我的误解是什么?


-
http://www.reiclindsay.com

推荐答案

Eric Lindsay< NO ********* *@ericlindsay.com>写道:
Eric Lindsay <NO**********@ericlindsay.com> writes:
我正在努力学习如何阅读我想要使用的DTD,
http://www.w3.org/TR/html4/strict.dtd

为什么?它与HTML没有任何关联。尝试

的用户代理实现了HTML规范,目的是散文,包括所有附加的

错误,并且随后与规范语法不兼容。


无论如何,如果你想了解SGMLese,找一个带有一些相当线索密度的参考(IOW,避免像瘟疫那样的W3C规范)。一个

开始基础知识的好地方可能是


< http://www.hti.umich.edu/cgi/t/tei/ tei-idx?type = extoc& byte = 71769>


或者只需浏览


< http://xml.coverpages。 org / general.html>

我不明白这一点,除非你有计划破坏一个

私有DTD用于SGML识别创作工具。


<!ELEMENT ADDRESS - - (%inline;)* - 关于作者的信息 - >
在我看来,这个元素ADDRESS需要打开
和结束标签,是一个INLINE元素
I''m trying to learn how to read a DTD I wanted to use,
http://www.w3.org/TR/html4/strict.dtd
Why? It hasn''t any relevance for HTML. User agents who try to
implement the HTML spec at all aim at its prose including all attached
errors and are subsequently incompatible with the normative syntax.

Anyway, if you want to understand SGMLese, locate a reference with some
considerable clue-density (IOW, avoid W3C specs like the plague). A
good place to start for the basics might be

<http://www.hti.umich.edu/cgi/t/tei/tei-idx?type=extoc&byte=71769>

Or just wade through

<http://xml.coverpages.org/general.html>
I don''t see the point, though, except if you have plans to mangle a
private DTD for usage in SGML aware authoring tools.

<!ELEMENT ADDRESS - - (%inline;)* -- information on author --> This seemed to me to be saying that the element ADDRESS requires opening
and closing tags, is an INLINE element




它可以*包含*在参数实体内联中没有或多个实例集合在一起

(忘记

不一致使用的术语''block''是一件好事, ''inline''完全在HTML

上下文中,BTW)。

-

|||十六进制EBB

oo十进制3771

--oOo - () - oOo--八进制7273

205再见二进制111010111011



It can *contain* none or more instances of whatever is lumped together
in the parameter entity inline (it would be a good thing to forget about
the inconsistently used terms ''block'' and ''inline'' altogether in an HTML
context, BTW).
--
||| hexadecimal EBB
o-o decimal 3771
--oOo--( )--oOo-- octal 7273
205 goodbye binary 111010111011


Eric Lindsay写道:
Eric Lindsay wrote:
我正在努力学习如何阅读我想要使用的DTD,
http://www.w3.org/TR/html4/strict.dtd
确保我在阻止,内联或流动(或者)方面正确对待每个元素。

<!ENTITY%block
" P | %标题; | %列表; | %预格式化; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM |人力资源|表| FIELDSET | ADDRESS">

<!ENTITY%flow"%block; | %inline;">

我读到的方式是包含ADDRESS的块元素。然而
与ADDRESS相关的下一个项目是

<!ELEMENT ADDRESS - - (%inline;)* - 关于作者的信息 - >
<!ATTLIST地址
%attrs; - %coreattrs,%i18n,%events -
I''m trying to learn how to read a DTD I wanted to use,
http://www.w3.org/TR/html4/strict.dtd
to ensure I was treating each element correctly in terms of being block,
inline, or flow (either).

<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">

<!ENTITY % flow "%block; | %inline;">

The way I read that was the block elements included ADDRESS. However
the next item related to ADDRESS was

<!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
<!ATTLIST ADDRESS
%attrs; -- %coreattrs, %i18n, %events --
>



在我看来,这个元素ADDRESS需要打开
和结束标签,是一个INLINE元素,可以省略,或者使用一次或多次。



This seemed to me to be saying that the element ADDRESS requires opening
and closing tags, is an INLINE element that can be left out, or used one
or more times.




不,它说的是地址元素的内容必须是

%inline。


Steve



No, it''s saying that the content of the address element must be
%inline.

Steve


Eric Lindsay写道:
Eric Lindsay wrote:
我正在努力学习如何阅读我想要使用的DTD,
http://www.w3.org/TR/html4/strict.dtd
以确保我对待每个元素正确的是阻止,内联或流动(或者)。


只有块或内联元素。

流是一个实体。可能是内联的或阻止的。

<!ENTITY%block
" P | %标题; | %列表; | %预格式化; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM |人力资源|表| FIELDSET |地址]按钮;>


这定义哪些元素是块类型。

%标题,%列表和%预格式化实体扩展到元素

(每个允许的内容类型。

<!ENTITY%flow"%block; | %内联;">


%flow实体被定义为Block或Inline。

我读的方式是包含ADDRESS的块元素。


正确。 ADDRESS元素被定义为块类型。

但是
与ADDRESS相关的下一个项目是

<!ELEMENT ADDRESS - - (%inline;) * - 关于作者的信息 - >
<!ATTLIST ADDRESS
%attrs; - %coreattrs,%i18n,%events -
I''m trying to learn how to read a DTD I wanted to use,
http://www.w3.org/TR/html4/strict.dtd
to ensure I was treating each element correctly in terms of being block,
inline, or flow (either).
There are just block or inline elements.
Flow is an "entity" which may be either inline or block.
<!ENTITY % block
"P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |
BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">
This defines which elements are block type.
The %heading, %list and %preformatted entities are expanded elewhere
(permissable content type for each).
<!ENTITY % flow "%block; | %inline;">
The % flow entity is defined to be either Block or Inline.
The way I read that was the block elements included ADDRESS.
Correct. The ADDRESS element is defined to be block type.
However
the next item related to ADDRESS was

<!ELEMENT ADDRESS - - (%inline;)* -- information on author -->
<!ATTLIST ADDRESS
%attrs; -- %coreattrs, %i18n, %events --
>



ADDRESS元素只能_contain_内联元素零次或多次。

在我看来,这个元素ADDRESS需要打开
和结束标签,是一个INLINE元素,可以省略,或者使用一次或多次。

任何人都可以向我解释一下我的误解吗?


The ADDRESS element may only _contain_ inline element(s) zero or more times.
This seemed to me to be saying that the element ADDRESS requires opening
and closing tags, is an INLINE element that can be left out, or used one
or more times.

Can anyone explain to me what I am misunderstanding?




如何阅读HTML DTD:

< ; http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.3>


-

Gus



How to read the HTML DTD:
<http://www.w3.org/TR/html4/intro/sgmltut.html#h-3.3>

--
Gus


这篇关于DTD?是地址元素块还是内联?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆