Webアプリケーションでは、XSLTを使用して検索結果を表示します。 言語に依存しないようにするために、XSLTファイルにハードコードされたテキストがいくつかあります。XSLT言語に依存しないようにする
XSLT:
<xsl:if test="$IsEmpty">
<table cellpadding="5" cellspacing="0" border="1" style="width:100%;border-top-style:solid;border-bottom-style:solid;border-left-style:solid;border-right-style:solid;border-top-color:gray;border-bottom-color:gray;border-left-color:gray;border-right-color:gray;border-top-width:1px;border-bottom-width:1px;border-left-width:1px;border-right-width:1px;">
<tr>
<td style="text-align:center;">
There are no blog posts to display.
</td>
</tr>
</table>
</xsl:if>
それはリソースファイルからテキスト"There are no blog posts to display."
を選択することは可能ですか?
大きな助けを。出来た! ありがとう! – Vijay
'msxsl:script'はもう一つの選択肢です。 –
'msxsl:script'がresxへのアクセスを提供する方法がわかりません。私は例を見てみたいです... –