[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] transform a string
Subject: [xsl] transform a string From: Jan Limpens <jan.limpens@xxxxxxxxx> Date: Fri, 26 Nov 2004 23:15:09 -0200 |
hello, within a xsl template I need to transform a physical path like file:///D:/usr/jan/My Documents/Visual Studio Projects/Web/Data/XmlContent/Development/TaskSheet.xml to /Development/Tasksheet.aspx I tried <xsl:param name="baseDir" select="'file:///D:/usr/jan/My Documents/Visual Studio Projects/Web/Data/XmlContent/'"/> <xsl:template match="site:document"> <site:document> <site:xml-file> <xsl:value-of select="site:xml-file"/> </site:xml-file> <site:link> <xsl:value-of select="translate(string(site:xml-file), $baseDir, '')"/> </site:link> </site:document> </xsl:template> but keep getting strange, scrambled results... thanks for the help -- Jan http://www.limpens.com Otakoo Saloon Cartoon - newest episode at http://limpens.com/oscredirect
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Convert copyright symbol , Geert Josten | Thread | Re: [xsl] transform a string, Geert Josten |
RE: [xsl] Problem for : increment a, que Li | Date | Re: [xsl] Problem for : increment a, Andy Dent |
Month |
Keywords