0
<news><story><p>Located online at <url>www.guessthatgroove.com</url>, the service is
  entirely free. He explained that the business model is based upon
  commission fees from linked sites such as Amazon.com and iTunes, which
  offer game players an option to purchase CDs and individual music tracks
  that they encounter throughout the game. It's too early to tell whether
  he has hit on another social phenomonon along the lines of Tall
  Tales. Regarding the potential success of the online game, he
  replied, <quote>It was a lot of fun to create and I enjoy playing it
  myself, so in some ways I already consider it a success</quote>.</p>

xsl:

#p
{
width:450px;
text-align:left;
margin-bottom:8px;
color:black;
font-family:Verdana, Arial;
font-size:10pt
}
url
{
font-weight:bold
}
quote
{
font-style:italic
}
</style>
</head>
<body>
    <div id="p">
        <xsl:value-of select="news/story/p" />
    </div>

我的问题是如何在 xsl 文件中应用 URL 和 Quote 标签的 css 样式?

4

1 回答 1

0

而不是 <xsl:value-of select="news/story/p" /> 使用 <xsl:apply-templates/> 并为 URL 和引用创建模板。

于 2013-04-25T05:56:59.537 回答