[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: By Using concat substring-after?
> <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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|