I encounter some questions as I was doing Assignment 3 on the conversion of DTD to XML schema.
Question 1:
Must the ComplexType /sequence be parked directly under the element that it is defining? In this case, should the first, middle and last name be parked directly under the "author", then follow by the rest of the elements (title, subject, year) under the "record" element as shown below?

OR should all the elements of "record" be shown first; before we define the sequence of the author's first, middle, last name like shown below?

For the sake of brevity, I have dropped all the attributes and other details.
I tried writing in both ways, both seem to work fine; however I am not sure if expressing them differently as shown above actually meant different things.
Question 2:
I am somewhat confused by the (LCSH/LCC/DDC) portion. I placed them as elements. Should they be attribute of "subject", since they are authorities?
No comments:
Post a Comment