- 1、本文档共46页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
第五章 XSL介绍
第五章 XSLT The Extensible Stylesheet Language (XSL) includes both a transformation language and a formatting language. XSL Transformations The transformation language provides elements that define rules for how one XML document is transformed into another XML document. There’s also special support for outputting HTML. Thus XSLT is designed primarily for XML-to-XML and XML-to-HTML transformations. Trees An XSLT processor accepts as input a tree represented as an XML document and produces as output a new tree, also represented as an XML document. Trees Thus, XSLT processors model an XML document as a tree that contains seven kinds of nodes: The root Elements Text Attributes Namespaces Processing instructions Comments XSLT style sheet documents An XSLT document contains template rules. A template rule has a pattern specifying the nodes it matches and a template to be instantiated and output when the pattern is matched. Where does the XML transformation happen? The XML document and associated style sheet are both served to the client (Web browser), which then transforms the document as specified by the style sheet and presents it to the user. The server applies an XSLT style sheet to an XML document to transform it to some other format (generally HTML) and sends the transformed document to the client (Web browser). A third program transforms the original XML document into some other format (often HTML) before the document is placed on the server. Both server and client only deal with the transformed document. Direct display of XML files with XSLT style sheets ?xml version=”1.0”? ?xml:stylesheet type=”text/xsl” href=”17-2.xsl”? XSL Templates Each xsl:template element has a match attribute that specifies which nodes of the input document the template is instantiated for. The content of the xsl:template element is the actual template to be instantiated. A template may contain both text that will appear literally in the output document and XSLT instructions that copy data fro
您可能关注的文档
- 第二部分 大气降水、地表水、地下水同位素研究中的一些问题.ppt
- 第二课(last weekend)作文教学.ppt
- 第二课 汽车电喷.ppt
- 第二课 典雅优美的古希腊雕塑.ppt
- 第五册第二单元学案答案.ppt
- 第二节课自动变速器拆装(授课教师:彭伟).ppt
- 第五册英语复习.doc
- 第五单元 段落翻译 - 喀什师范学院-学工部.ppt
- 第五单元 礼仪性口译(英译汉).doc
- 第五单元 Essen und Trinken.ppt
- 吉安县公开招聘专职文明实践员笔试备考试题及答案解析.docx
- 2025重庆枫叶国际学校招聘教师笔试备考试题及答案解析.docx
- 游机队电玩自制联网教程-tplink.pdf
- 2025重庆新华出版集团招聘1人笔试模拟试题及答案解析.docx
- 2025宜宾高新丽雅城市产业发展有限公司公开招聘笔试模拟试题及答案解析.docx
- 2025云南保山市龙陵县勐糯镇人民政府招聘合同制专职消防员1人笔试模拟试题及答案解析.docx
- 11.1生活中常见的盐 九年级化学人教版下册.pptx
- 6.1法律保护下的婚姻 高二政治《法律与生活》课件(统编版选择性必修2)(新版).pptx
- 文昌市中小学教师校园招聘29人笔试模拟试题及答案解析.docx
- 10.1.5 常见的酸和碱(第5课时)课件-九年级化学人教版下册.pptx
文档评论(0)