about dtd

H

hantechs

I read the html specification and encounter the following dtd for LABEL
element:
<!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
what's the meaning of these dash? and %inline;? Thanks.
 
P

Peter Flynn

I read the html specification and encounter the following dtd for LABEL
element:
<!ELEMENT LABEL - - (%inline;)* -(LABEL) -- form field label text -->
what's the meaning of these dash? and %inline;? Thanks.

That's not XML, it's SGML.

The two dashes are minimization indicators for the start-tag and end-tag
respectively (here meaning that both must be present: don't forget that
SGML can allow start-tags and end-tags to be absent-but-implied);

The %inline; is a Parameter Entity: meaning exactlty the same as in XML,
that the parser substitutes the value of the entity declared earlier;

The minus before (LABEL) means it's an exclusion exception: LABEL may
not occur in the content of LABEL even if %inline; says it may (another
SGML feature omitted from XML);

The comment at the end between double dashes is just a comment, but this
syntax is also forbidden in XML.

///Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,002
Messages
2,570,261
Members
46,859
Latest member
VallieMcKe

Latest Threads

Top