Subject: [xsl] Re: Manipulating file system path names in element content From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Tue, 2 Apr 2002 23:18:52 -0800 (PST) |
Steve Rosenberry <Steve dot Rosenberry at ElectronicSolutionsCo dot com> wrote: > One of my XML elements contains a file system path name > (C:\root\image.jpg). Do I have any tools other than raw string > manipulation functions to pull apart the different file path pieces > (drive letter, path, base name, extension...) in XLST? You can use the functions from FXSL to do that. Do have a look the solution of a similar problem posted here almost a month ago: "Re: Get file name without path info" http://sources.redhat.com/ml/xsl-list/2002-03/msg00399.html FXSL provides a very good support for string parsing and manipulation, the last example was the use of the str-filter() function for the elimination of unwanted characters from a string, which beats double translate() for strings longer than 20K: http://sources.redhat.com/ml/xsl-list/2002-03/msg01522.html and http://sources.redhat.com/ml/xsl-list/2002-03/msg01523.html In the next version of FXSL there would be functions for drive letter, path, base name and extension. Cheers, Dimitre Novatchev. __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Displaying Base64 Encoded, Greg Faron | Thread | [xsl] Increment/decrement a variab, Shaik Zulfakhar Ali |
[xsl] Displaying Base64 Encoded Dat, Ramesh B | Date | RE: [xsl] Escaped Chars from DB dis, Michael Kay |
Month |