我很难弄清楚如何使用tim thumb在xslt中裁剪图像例如,下面的代码在php:中
<img src="include/timthumb.php?src=http://localhost/testdata/1830censusfiscalchart.jpg&w=400&h=200 " />
我的问题是如何用xsl编写上面的代码,我尝试了不同的方法,但它总是给我带来错误。
如果要在XSLT输出的属性中使用与号(&
),则需要将它们"转义"为&
,以便XML格式正确。类似这样的东西:
<img src="include/timthumb.php?
src=http://localhost/testdata/1830censusfiscalchart.jpg&w=400&h=200 " />