资料与显示分开.ppt

  1. 1、本文档共28页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
资料与显示分开

XML (eXtensible Markup Language) DB niky 10/29/1999 Outline Two examples History Logical and Physical Structure Element (logical structure) Attribute (logical structure) Entity (physical structure) Notation (physical structure) Include Ignore (logical structure) History SGML (Standard Generalized Markup Language) 1986 too complex HTML (Hyper Text Markup Language) 1991 an application of SGML SGML context free grammar DTD c grammar HTML c program XML (eXtensible Markup Language) 1996 a subset of SGML Logical and Physical Structure Logical Structure: the markup used to indicate the kinds of information stored in a document and their relationship a book: title, chapters, paragraphs Physical Structure: If a document stores information in files, the markup will identify the files and their location. store XML text(parsed) or non-XML text(unparsed) reuse data Default: #REQUIRED #IMPLIED Default #FIXED FixedValue Entity(physical structure) !ENTITY SIGNATURE Bill !ENTITY Image SYSTEM “Image.gif” NDATA GIF !ENTITY % tabledecls SYSTEM “cals.dtd” parsed, unparsed internal, external general, parameter !ENTITY EntityName EntityDefinition !ENTITY % EntityName EntityDefinition EntityDefinition: EntityValue | ExternalID Reference in Content (in DTD) !ENTITY SIGNATURE Bill (in Document) BODY Hello, this is SIGNATURE;. Take care, -SIGNATURE; /BODY (result) BODY Hello, this is Bill. Take care, -Bill /BODY Reference in Attribute Value Reference as Attribute Value (in DTD) !ENTITY gEnt “Spanish” !ENTITY unparsedEnt SYSTEM “clown.jpg” NDATA JPEG !ATTLIST para style CDATA #IMPLIED picfile ENTITY #IMPLIED (in Document) para style=“n gEnt;” picfile=“unparsedEnt” (result) para style=“n Spanish” picfile=“unparsedEnt” Reference in Entity Value !ENTITY gEnt1 “Spanish” !ENTITY gEnt2 “English” !ENTITY gEnt3 “gEnt1; and gEnt2; !ENTITY % pEnt “Chinese” !ENTITY gEnt4 “Language: %pEnt;” (result) !ENTI

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档