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 に答える