- 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
您可能关注的文档
最近下载
- 临床药学专业知识理论考核试题题库与答案.docx
- 土石坝安全监测.pptx VIP
- 河南南阳艾草产业发展现状、问题及对策研究.pdf VIP
- MES系统引领铜加工行业智能化转型.docx
- 五年级下册英语教案-Unit5 I'm-cleaning my room.(Lesson-26)|人教精通版.doc VIP
- 人教版数学一年级上册《 9加几》校本作业设计.pdf
- 航海模拟器-大连海事大学研究生院.doc
- DIN1045-2-2008 国外国际标准.pdf
- 佳能R62使用说明书【最新完整电子版】.pdf
- [检验检测标准]SHT 0253-1992_轻质石油产品中总硫含量测定法(电量法).pdf
文档评论(0)