This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Manipulating file system path names in element content


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]