xml - NMTOKEN questions. Am I overthinking it? -


i have quick question regarding xml assignment.

1) assignment states need add nmtoken code. input code <!attlist catalog type nmtoken #required>? or should put name it? there short section on nmtoken , nmtokens didn't state if needed make or not.

the instruction the type attribute, required attribute of catalog element, containing valid xml name

the code in file given fit instruction <catalog type="photos">

2)the second question similar first in states use nmtokens. make similar code shown above nmtokens in place? there multiple code have similar element metadata. repeat code until have made string each metadata?

the question the metadata attribute, required attribute of name element, containing list of valid xml names

the codes fit instructions

<name metadata="watch timekeeping pocket railway">pocket watch</name>

<name metadata="hotel">bergenfield hotel</name>

<name metadata="sweeney coal fuel">sweeney coal</name>

<name metadata="tunis cooper property museum">tunis r. cooper property</name>

except 4 string of code above main coding done in external dtd , used code <!doctype photos system "photos.dtd"> port on xml ( in examples in ). in case there confusion.

thank or input!

do input code <!attlist catalog type nmtoken #required>?

yes.

or should put name it?

not sure mean "name". can't add else attlist without making invalid. an nmtoken (name token) mixture of name characters.

would make similar code shown above nmtokens in place?

yes. allow attribute contain more 1 nmtoken value.

there multiple code have similar element metadata. repeat code until have made string each metadata?

do mean there multiple elements have metadata attributes? if yes, need declare attribute each 1 of elements.

hopefully answers questions.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -