- 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
- (4篇)XX区抓党建促基层治理培训心得体会汇编12.docx
- 汇编1154期-在培训班上的讲话汇编(3篇).doc
- 汇编1173期-专题党课讲稿汇编(3篇)112.doc
- 汇编1076期-主题党课讲稿汇编(3篇).doc
- 汇编1177期-学习心得体会汇编(3篇)112.doc
- (6篇)党和国家机构改革心得体会汇编.docx
- 汇编1166期-坚定理想信念、全面从严治党、担当作为专题党课讲稿汇编(3篇)112.doc
- 汇编1174期-专题党课讲稿汇编(3篇)112.doc
- 教育13期-主题教育学习心得体会、研讨发言材料参考汇编(3篇).doc
- 汇编1458期-心得体会研讨发言提纲参考汇编(3篇)123.doc
最近下载
- 露天非煤矿山施工方案.docx VIP
- 标准图集-13G322-1-钢筋混凝土过梁 - 烧结普通砖、蕉压灰砂翩。蒸压粉煤灰砖砌体.pdf
- 危大工程-模板工程及支撑体系-安全管理措施.doc VIP
- 高中历史选择性必修3《文化交流与传播》教学设计(修订版).doc
- 废水处理可行性研究报告.docx VIP
- 统编人教部编版小学语文四年级下册语文第二单元测试卷A(附答案).docx VIP
- GB-55015 空气源热泵技术解读-2024制冷展.pdf
- 2025年郑州旅游职业学院单招职业技能测试题库必考题.docx VIP
- 基于PLC的教室照明自控系统设计.doc
- GB50175-2014 露天煤矿工程质量验收规范.docx
文档评论(0)