> <xsl:value-of select="concat(substring-after(@fileloc,'/xml/'),'.htm')"/>
>
You allmost did it, just try
<xsl:value-of
select="concat(substring-before(substring-after(@fileloc,'/xml/'),'.'),'.htm'
)"/>
Regards, Manfred Staudinger, Vienna
On 30/10/05, Shailesh Shinde <shailesh@xxxxxxxxxxxx> wrote:
> Hi All,
>
> I need to get filename extension as
>
> <fileloc path="Testing.htm">
>
> From the element which contains
>
> <file fileloc="Help/Topics/xml/Testing.xml"/>
>
> By using below as xsl element:
>
> <xsl:value-of select="concat(substring-after(@fileloc,'/xml/'),'.htm')"/>
>
> I am getting
>
> <fileloc path="Testing.xml.htm">
>
>
> How to get rid of this problem?
>
> Thanks,
> Shailesh
|