Context Free Grammars课件.ppt

  1. 1、本文档共68页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Example 2: XML - What is it? XML = eXtensible Markup Language Technology for web applications - 1997 World Wide Web Consortium (W3C) standard that lets you create your own tags. Implications for business-to-business transactions on the web. 精品文档 HTML and XML Why do we need XML? We have HTML today All browsers read HTML Designed for reading by Humans Example on the left 精品文档 HTML Rendered HTML “rendered” as shown to the left Tags describe how the HTML should be displayed, or presented Tags don’t describe what anything is! 精品文档 Sample XML File Same data, but in an XML format Humans, but particularly computers, can understand the meaning of the tags If we want to know the last name, we know exactly where to look! 精品文档 Displaying XML XML can be rendered, or displayed, just like the HTML page if we so desire Rendering instructions aren’t stored in the same file, but in a separate XSL file - exTensible Stylesheet Language 精品文档 Second Rendering With a different style sheet, we can render the data in an entirely different way Same content, just different presentation 精品文档 Second example: Song Lyrics in HTML H1Hot Cop/H1 i by Jacques Morali, Henri Belolo, and Victor Willis/i ul liProducer: Jacques Morali liPublisher: PolyGram Records liLength: 6:20 liWritten: 1978 liArtist: Village People /ul 精品文档 Song Lyrics in XML SONG TITLEHot Cop/TITLE COMPOSERJacques Morali/COMPOSER COMPOSERHenri Belolo/COMPOSER COMPOSERVictor Willis/COMPOSER PRODUCERJacques Morali/PRODUCER PUBLISHERPolyGram Records/PUBLISHER LENGTH6:20/LENGTH YEAR1978/YEAR ARTISTVillage People/ARTIST /SONG 精品文档 Song XSL Style Sheet for Formatting ?xml version=1.0? xsl:stylesheet xmlns:xsl=/TR/WD-xsl xsl:template match=/ html headtitleSong/title/head bodyxsl:value-of select=.//body /html /xsl:template xsl:template match=TITLE h1xsl:value-of select=.//h1 /xsl:template /xsl:stylesheet Style Sheets can be quite complex; most translate to HTML 精品文档 Third Example - News Story New

文档评论(0)

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

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

1亿VIP精品文档

相关文档