包括XML文档的要点
我有XML文档,一个标记有很长的描述,所以我想用几个要点来格式化它 比如说,包括XML文档的要点,xml,xslt,points,Xml,Xslt,Points,我有XML文档,一个标记有很长的描述,所以我想用几个要点来格式化它 比如说, <description>This course is an introduction to the information technologies required for secure, practical information systems for electronic commerce. Topics will be chosen from areas such as document rep
<description>This course is an introduction to the information technologies required for secure, practical information systems for electronic commerce.
Topics will be chosen from areas such as document representation (XML, DTDs, XML Schema, XSLT, CSS), security (encryption, public key, symmetric key,
PKI, authentication); kinds of attack and vulnerabilities, electronic trading (spontaneous, deliberative, auctions), electronic document management
(metadata, search, digital libraries, management and processing), recent developments and maturation of the area,
such as web application frameworks, web services, the semantic web , mobile commerce</description>
本课程介绍安全实用的电子商务信息系统所需的信息技术。
主题将从文档表示(XML、DTD、XML模式、XSLT、CSS)、安全性(加密、公钥、对称密钥、,
PKI(认证);各种攻击和漏洞、电子交易(自发、商议、拍卖)、电子文档管理
(元数据、搜索、数字图书馆、管理和处理),该领域的最新发展和成熟,
如web应用框架、web服务、语义web、移动商务等
我希望这是在一些什么样的
- 本课程介绍信息技术 用于安全、实用的电子信息系统 商业
- 主题将从文档表示等领域中选择
(XML、DTD、XML模式、XSLT、CSS)、安全性(加密、公钥、, 对称密钥、PKI、身份验证);攻击和攻击的种类
漏洞、电子交易(自发、审慎,
拍卖) - 电子文档管理(元数据、搜索、数字图书馆、, 管理和加工),最近的发展和成熟的 领域,如web应用程序框架、web服务、语义 网络、移动商务
<xsl:template match="/">
<html>
<head>
<title> Course Catalogue </title>
</head>
<body bgcolor="#FF9999">
<xsl:for-each select="xsi:catalogue/xsi:course">
<br />
<xsl:apply-templates select="xsi:title" />
<br />
<xsl:apply-templates select="xsi:year" />
<br />
<xsl:apply-templates select="xsi:science" />
<br />
<xsl:apply-templates select="xsi:area" />
<br />
<xsl:apply-templates select="xsi:subject" />
<br />
<xsl:apply-templates select="xsi:unit" />
<br />
<xsl:apply-templates select="xsi:description" />
<br />
<xsl:apply-templates select="xsi:outcomes" />
<br />
<xsl:apply-templates select="xsi:incompatibility" />
</xsl:for-each>
</body>
</html>
</xsl:template>
课程目录
对于xsi:description
<!-- The template for course description -->
<xsl:template match="xsi:description">
<div style="font-family:times;font-size:16">
<span style="color:#000">
Course Description:
</span>
<xsl:value-of select="." />
</div>
</xsl:template>
课程简介:
我应该如何包括要点?谢谢大家! 您必须决定使用分隔符将描述拆分为项目符号。下面是一个使用句号和分号作为分隔符进行拆分的示例: 模板:
课程简介:
输出:
课程简介:
- 本课程介绍安全、实用的电子商务信息系统所需的信息技术
- 主题将从以下领域中选择:文档表示(XML、DTD、XML模式、XSLT、CSS)、安全性(加密、公钥、对称密钥、PKI、身份验证)李>
- 各种攻击和漏洞、电子交易(自发、商议、拍卖)、电子文档管理(元数据、搜索、数字图书馆、管理和处理)、该领域的最新发展和成熟,如web应用程序框架、web服务、语义web、移动商务
如果要使用不同的规则来拆分段落,可以将正则表达式值从
*?[\.;]
更改为其他值。您必须决定使用分隔符将描述拆分为项目符号。下面是一个使用句号和分号作为分隔符进行拆分的示例:
模板:
课程简介:
输出:
课程简介:
- 本课程介绍安全、实用的电子商务信息系统所需的信息技术
- 主题将从以下领域中选择:文档表示(XML、DTD、XML模式、XSLT、CSS)、安全性(加密、公钥、对称密钥、PKI、身份验证)李>
- 各种攻击和漏洞、电子交易(自发、商议、拍卖)、电子文档管理(元数据、搜索、数字图书馆、管理和处理)、该领域的最新发展和成熟,如web应用程序框架、web服务、语义web、移动商务
如果您想使用不同的规则来分解段落,可以将正则表达式值从
*?[\.;]
更改为其他值。我在xslt文件中添加了
)吗?并指定错误所说的内容?“不起作用”是什么意思?您能使用XSLT 2.0吗?还是只能使用XSLT 1.0?我将
)并指定错误的含义以及“不起作用”的含义。您可以使用XSLT 2.0吗?还是只能使用1.0?我将<xsl:template match="xsi:description">
<div style="font-family:times;font-size:16">
<span style="color:#000">Course Description:</span>
<ul>
<xsl:analyze-string select="string()" regex=".*?[\.;]" flags="sm">
<xsl:matching-substring>
<li><xsl:value-of select="."/></li>
</xsl:matching-substring>
<xsl:non-matching-substring>
<li><xsl:value-of select="."/></li>
</xsl:non-matching-substring>
</xsl:analyze-string>
</ul>
</div>
</xsl:template>
<div style="font-family:times;font-size:16">
<span style="color:#000">Course Description:</span>
<ul>
<li>This course is an introduction to the information technologies required for secure, practical information systems for electronic commerce.</li>
<li>Topics will be chosen from areas such as document representation (XML, DTDs, XML Schema, XSLT, CSS), security (encryption, public key, symmetric key, PKI, authentication);</li>
<li> kinds of attack and vulnerabilities, electronic trading (spontaneous, deliberative, auctions), electronic document management (metadata, search, digital libraries, management and processing), recent developments and maturation of the area, such as web application frameworks, web services, the semantic web , mobile commerce</li>
</ul>
</div>