0
我有這樣一段代碼:奇怪的變量。 XSL
<xsl:template match="bottom">
<div class="l1">
<div class="l2">
<div class="fl100">
<div align="center">
<div class="mw" align="center">
<div class="footer">
<div class="f1">$-BOTTOM_COPY-$</div>
<div class="f2">
$-BOTTOM_CONTACTS-$
</div>
<div class="f3">
$-BOTTOM_LINKS-$
</div>
<div class="f4">
$-BOTTOM_STUDY-$
</div>
</div>
</div>
</div>
</div>
</div>
</div>
我無法從$ -BOTTOM_CONTACTS- $,$ -BOTTOM_LINKS- $等變量在哪裏understan。 我是xsl中的新成員,並且搜索了每個src文件,但在php代碼中未找到任何定義聲明。 有什麼想法?
這不是固有的XSL。它可以在XSL文件的其他地方定義,另一個XSL文件包含在這個文件中,或者它被代碼替換。也可能是這些字段是在應用程序可能運行的數據庫中定義的。無論如何,我會再次在您的代碼上進行全文搜索以查找BOTTOM_CONTACTS,* not * $ -BOTTOM_CONTACTS- $。同時檢查它是否出現在數據庫中。 – Yuval
全文搜索沒有給出結果。我會嘗試在數據庫中搜索,但有一個問題:它完全加密。謝謝。 – bosone
與其他基於XML的標準一樣,XSL定義變量。 http://www.xml.com/pub/a/2001/02/07/trxml9.html – Yuval