首页 软考

计算机中英文对照专业时文选读之十九

软考 dapengpeng 浏览 1150

ExtensibleStylesheetLanguage(XSL)(1)Markuplanguageshavebeenaroundsince1969.ThatwasthegrandfatherofHypertextMarkupLanguage(HTML),whichmakestheWebwork,andofExtensibleMarkupLanguage(XML),whichhasbecometheprimarymeansofdefining,storingandformattingdatainamul

Extensible Stylesheet Language (XSL)(1)

Markup languages have been around since 1969. That was the grandfather of Hypertext Markup Language (HTML), which makes the Web work, and of Extensible Markup Language (XML), which has become the primary means of defining, storing and formatting data in a multitude of areas, including documents, forms and databases.

At the heart of these languages is a system called tagging, where text or data is marked by indicators enclosed in angled brackets, always at the beginning (tag) and often at the end (/tag).

HTML pages use standardized, predefined tags. For example, (p) means a paragraph, (h1) means a header and (b) followed by (/b) means the enclosed text is to be bold. Web browsers interpret these tags and format the text accordingly when they display the pages on-screen.

With XML, however, programmers can make up tags, and browsers have no built-in way of knowing what the tags mean or what to do about them. Further complicating matters, we can use tags to describe data itself (content) or to give formatting instructions (how to display or arrange an element).

For instance, (table) could refer to a matrixlike arrangement of items on an HTML page, or it could signify a piece of furniture. This flexibility makes XML powerful, but it confuses the distinction between content and format.

In order to display XML documents usefully, we need a mechanism that identifies and describes the meaning of formatting tags and shows how they affect other parts of the document. Past mechanisms have included the Document Style Semantics and Specification Language, and Cascading Style Sheets. Both have now been extended and superseded by Extensible Stylesheet Language, a standard recommended by the World Wide Web Consortium (W3C) in 2001.

Extensible Stylesheet Language (XSL) is a family of languages and specifications designed for laying out and presenting XML documents and data in specified formats appropriate for the final output medium or device.

XSL provides a comprehensive model and vocabulary for writing stylesheets using XML syntax. It is used to define how to transform an XML file into a format (such as HTML) that a browser can recognize and understand.

XSL can add elements to the output file or remove or ignore existing elements. It can rearrange and sort the elements, test and make decisions about which elements to display, and a lot more.(To Be Continued)

时文选读:可扩展版式语言( XSL)(1)

自 1969年就有了标记语言。它是超文本标记语言(HTML)和扩展标记语言(XML)的始祖,HTML成就了互联网,而XML是在文档、格式和数据库等多方面定义、储存和格式化数据的基本手段。

这些语言的核心是一个叫 “标记”的系统,其中文本或数据被用尖括号括起来的指示符做标记。总是以“(标记)”开始,常常以“”结束。

HTML页面使用标准化的、预定义的标记。例如,“(p)”表示段落,“(h1)”表示标题,而“(b)”后跟“(/b)”表示括起来的文本要大写。Web浏览器解释这些标记,在屏幕上显示文本时根据标记对文本格式化。

然而在使用 XML时,程序员可以创造标记,而浏览器没有内在预定好的方法,知道这些标记是什么意思或者对它们做些什么。更为复杂的是,我们能用标记来表述数据本身(内容)或者给出格式化的指令(如何显示或安排内容)。

例如, “(table)”可以指在HTML页面上像矩阵那样安排内容,或者强调它只是一片空白。这种灵活性使XML功能强大,但也混淆了内容与格式之间的界限。

为了有效地显示 XML文档,我们需要一种机制,它能识别和描述格式标记的意义,以及说明这些标记如何影响文档的其他部分。过去的机制包括文档风格语义和规范语言以及级联版式。现在,万维网联盟(W3C)在2001年推荐的标准——可扩展版式语言将这些机制扩展进来或替代了。

可扩展模版语言( XSL)是一组语言和规范,设计来以与最终输出介质和设备相适应的指定格式编排和展现XML文档。

XSL为用XML语法编写版式提供了一个综合的模型和词汇表。它用来定义如何把XML文件转换成浏览器能够识别和理解的格式。

XSL 能给输出文件增加成分或者去掉或忽略已有的成分。它也能重新安排和筛选成分,测试和决定哪些成分显示等等。

责任编辑:dapengpeng|希赛教研中心

希赛教研中心拥有一支规模200余人的专职教研团队,深耕项目管理、软考、通信工程师、金融财会、厂商认证、考博英语等方向,形成“讲师+助教+班主任+智能学习平台”协同联动的完整教学服务体系:讲师讲透方法、助教盯住进度和答疑、班主任守住节奏、智能平台记录每一步成长——环环相扣,让学员的备考全程有人陪、有反馈、有结果。 师资力量雄厚。主要讲师毕业于 985/211 等知名高校,并拥有海外留学归国人才;职称梯队完善,高、中级职称讲师结构合理,讲师持有软考高级资格证书、PMI系列认证、CSPM高级项目管理培训师证、PeopleCert认证、DAMA认证、英语专八(TEM-8)、PETS-5、华为HCIE、经济师、一级建造师等行业权威资质,兼具深厚理论功底与丰富实战经验。 教研成果卓越。教研团队成员深度参与多项国家标准的研制工作,是 GB/T 47282-2026《项目重大节点评审规范》、GB/T 47285-2026《项目商业分析指南》、GB/T 30339-2026《项目和项目群后评价指南》、GB/T 46210-2025《项目成本管理指南》等国家标准的主要起草人,并担任《中国项目管理知识体系指南》总体编写专家组成员。团队累计主编出版专业图书与教材一百多种,覆盖软考、通信工程师、PMP、CSPM、NPDP等多个认证方向。 教学成效显著。 依托希赛自主研发的开放式智能互动学习平台,团队累计服务学员超百万人,帮助众多学员顺利通过软考、 PMP、CSPM、NPDP、华为认证、通信工程师、管理类联考、考博英语等考试,大批学员考入 985、211 等知名高校深造,以专业与口碑赢得学员和行业的广泛认可。

📅 本文最后更新于 2026-04-03

温馨提示:因考试政策、内容不断变化与调整,本网站提供的以上信息仅供参考,如有异议,请考生以权威部门公布的内容为准!
题库
章节练习
章节练习
章节专项突破
模拟考场
模拟考场
海量免费试题
历年真题
历年真题
真题实战演练
每日一练
每日一练
每天10题练习
习题练习
习题练习
核心知识点
机考模拟系统
机考模拟系统
在线模拟考场
高频错题
高频错题
错题突破集训
分享至