How to get the path last element using xslt
Posted: Mon Jul 25, 2022 7:23 pm
Hi,
I have a param in xslt . For Example, <xsl:param name="filePath"/>
The filepath is something like C:\xml\inwork\bookmap\preview\lessonName
I need to print exactly the lessonName in the attribute value.
I tried using <substring-after($filePath, '/')[last[])"/>
and <substring-after((tokenize($filePath, '/')[last[])"/> , but it is not working
Any possible solutions?
I have a param in xslt . For Example, <xsl:param name="filePath"/>
The filepath is something like C:\xml\inwork\bookmap\preview\lessonName
I need to print exactly the lessonName in the attribute value.
I tried using <substring-after($filePath, '/')[last[])"/>
and <substring-after((tokenize($filePath, '/')[last[])"/> , but it is not working
Any possible solutions?