This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

xsl:if - will this work?


Could anyone tell me if the following code would work? What I want it to do
is take all image tags containing gif images (NOT jpg images) and change
them in the output to <img src="image.gif.wbmp" />

<xsl:template match="img">
	<xsl:if test="@src='*.gif'">
		<img src="{@src}.wbmp" />
	</xsl:if>
</xsl:template>	

Thank you!


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]