Referencing from this source
ends-with is not applicable in XPATH 1.0, but i need its function to work on my application.
This is the code snippet wherein i need to match a specific exact string
<xsl:template match="p:Project/p:ItemGroup/p:Reference[starts-with(@Include, 'Common')]/@Include">
In that line I tried modifying it to this to achieve the desired output, as per the exception "ends-with syntax is not part of XPATH 1.0"
<xsl:template match="p:Project/p:ItemGroup/p:Reference[starts-with(@Include, 'Common') and ends-with(@Include, 'Common') ]/@Include">
Is there any alternative to do this?
I need to accomplish this, because there are parts in the xml file to be modified that has "Common" string in the beginning, like Common.UI, Common.Windows.Grid, so upon running, it also affects these lines
It should only change the one with "Common" only