在我的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 2009-09-03 08:30:59
'msxsl:script'是另一種選擇。 – 2009-09-05 11:09:42
我看不到'msxsl:script'如何提供對resx的訪問;我很想看到一個例子... – 2009-09-07 19:56:47