Re: [xsl] By Using concat substring-after?

Subject: Re: [xsl] By Using concat substring-after?
From: Manfred Staudinger <manfred.staudinger@xxxxxxxxx>
Date: Sun, 30 Oct 2005 04:33:05 -0800
> <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

Current Thread