XML ドキュメントがあり、1 つのタグに長い説明があるため、いくつかの箇条書きで書式設定したい
例えば、
<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、モバイル コマースなどの分野の最近の開発と成熟
これを行うには、XSL ファイルで何かを変更する必要があると思います。
<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>
箇条書きはどのように含めればよいですか? ありがとうございました!