📣 独立日限时特惠: VIP通行证立减$68
楼主: sanguine
跳转到指定楼层
上一主题 下一主题
收起左侧

[DB|大数据|云计算] [Stanford] Introduction to databases (week 1)

🔗
bruce77 2014-6-26 22:29:14 | 只看该作者
全局:
终于来交作业了....

DB 1.JPG (110.88 KB, 下载次数: 0)

DB 1.JPG
回复

使用道具 举报

🔗
喵灿灿 2014-12-22 14:39:37 | 只看该作者
全局:
啊啊啊初学者求问!!
Department元素下的属性Code定义哪里出错了啊?
源代码是:<!ATTLIST Department  Code (CS|EE) "CS">
编译器显示错误如下:
Error messages from xmllint: /tmp/tmpGWnbEC.dtd:3: parser error : '(' required to start ATTLIST enumeration

<!ATTLIST Department Code CS|EE) 'CS'>

^

/tmp/tmpGWnbEC.dtd:3: parser error : Content error in the external subset

<!ATTLIST Department Code CS|EE) 'CS'>

^
回复

使用道具 举报

全局:
Sorry to reply to this old theme, but I really got in trouble. Because I use the library's computer, I don't know how to change the language to Chinese. Anyway, I have a problem for exercise one.
The exercise one is:
In this question, you are to create a DTD for a small XML data set drawn from the Stanford course catalog. There are multiple departments, each with a department chair, some courses, and professors and/or lecturers who teach courses. The XML data is here.

Write a DTD for the XML data set.

Important: Do not include <!DOCTYPE Course_Catalog [...]> in your DTD. Your DTD should start with <!ELEMENT Course_Catalog (Department*)>.

What I wrote is:
<!ELEMENT Course_Catalog (Department*)>
<!ELEMENT Department (Title, Chair, Course*)>
<!ELEMENT Department Code (#PCDATA) #REQUIRED>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Chair (Professor)>
<!ELEMENT Professor (First_Name, Last_Name)>
<!ELEMENT First_Name (#PCDATA)>
<!ELEMENT Last_Name (#PCDATA)>
<!ELEMENT Course (Title, Description?, Instructors, Prerequisites?)>
<!ELEMENT Course    Number PCDATA #REQUIRED
                    Enrollment CDATA #REQUIRED>
<!ELEMENT Title (#PCDATA)>
<!ELEMENT Description (#PCDATA)>
<!ELEMENT Instructors (Lecturer | Professor)*>
<!ELEMENT Lecturer (First_Name, Middle_Initial, Last_Name)>
<!ELEMENT Middle_Initial (#PCDATA)>
<!ELEMENT Prerequisites (Prereq)>
<!ELEMENT Prereq (#PCDATA)>

The error is:
Incorrect

Error messages from xmllint: /tmp/tmpdPII0D.dtd:3: parser error : xmlParseElementDecl: 'EMPTY', 'ANY' or '(' expected

<!ELEMENT Department Code (#PCDATA) #REQUIRED>

^

/tmp/tmpdPII0D.dtd:3: parser error : Content error in the external subset

<!ELEMENT Department Code (#PCDATA) #REQUIRED>

^

Could not parse DTD /tmp/tmpdPII0D.dtd

Did anyone know the reason for this error? Thank you so much!
回复

使用道具 举报

🔗
bzydaodao 2016-3-9 07:24:17 | 只看该作者
全局:
这周课上完
回复

使用道具 举报

🔗
xinzh7868 2016-4-3 00:48:19 | 只看该作者
全局:
求教,怎么看视频,我只能看到文字的介绍,没有视频的链接的?
回复

使用道具 举报

🔗
hacker047 2024-8-20 16:21:22 | 只看该作者
全局:
现在交作业还能加学分嘛
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

>
快速回复 返回顶部 返回列表