我想使用xslt排除.cs文件并编写以下表达式:
<xsl:key name="cs-search" match="wix:Component[contains(wix:File/@Source, '.cs')]" use="@Id"/>
<xsl:template match="wix:Component[key('cs-search', @Id)]"/>
<xsl:template match="wix:ComponentRef[key('cs-search', @Id)]"/>
问题是,它也排除.css文件,但我只希望排除.cs文件。
检查最后三个字符是否.cs
与例如wix:Component[substring(wix:File/@Source, string-length(wix:File/@Source) - 2) = '.cs']
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句