Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/google-cloud-platform/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何使用<;img src=”等&引用&燃气轮机;在XSLT(SharePoint)中_Xslt_Sharepoint_Xslt 1.0 - Fatal编程技术网

如何使用<;img src=”等&引用&燃气轮机;在XSLT(SharePoint)中

如何使用<;img src=”等&引用&燃气轮机;在XSLT(SharePoint)中,xslt,sharepoint,xslt-1.0,Xslt,Sharepoint,Xslt 1.0,我使用以下代码在Sharepoint中使用XSLT显示图像。它工作得很好 <xsl:value-of select="@Image"> 但这种方法不允许我定义图像的宽度和高度,所以我试着这样使用它,但不起作用 <img src="{@Image}" width="100" height="100"> 如何使其工作?您的xsl格式不正确。你可以用 <img src="{@Image}" width="100" height="100" /> 这

我使用以下代码在Sharepoint中使用XSLT显示图像。它工作得很好

<xsl:value-of select="@Image">

但这种方法不允许我定义图像的宽度和高度,所以我试着这样使用它,但不起作用

<img src="{@Image}" width="100" height="100">


如何使其工作?

您的xsl格式不正确。你可以用

<img src="{@Image}" width="100" height="100" />


这是格式良好的xhtml版本。

尝试类似的方法,并为您的问题添加更多细节

<xsl:variable name="img">
      <xsl:value-of select="@Image" />
</xsl:variable>

然后,



更多关于XHTML的信息-

您的XML看起来像什么,特别是您引用的图像属性?你说的“不起作用”是什么意思?
<img src="$Image" width="100" height="100" />