Subject: Re: [xsl] URI's, double backslashes and regular expressions From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 28 Oct 2010 20:03:18 +0100 |
I just can't figure out the syntax here
I'm passing a directory location into Saxon as a parameter. Only I need to make every '\' character in the (windows) directory path a '\\' for the uri in the transform. As it's only the transform that needs this I thought I'd do the conversion in the transform. And it's beaten me.
The command line param is: ...path="C:\Documents and Settings\Adminis trator\My Documents\Projects\Transform\OutputFiles"
I've got this neatly passed into the transform with:
<xsl:param name="path"></xsl:param> ... <xsl:template match="Log"> <xsl:value-of select= replace($path, '\\', '\\')" />
<xsl:variable name="Command" select="concat($path, '\\OutputFiles\\Command-output.xml')" /> <xsl:result-document method="xml" href="{$Command}"> .....
But fails and I just can't figure out how to achieve setting the result-document
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] URI's, double backslashes and, Neil Owens | Thread | Re: [xsl] URI's, double backslashes, Michael Kay |
[xsl] URI's, double backslashes and, Neil Owens | Date | Re: [xsl] URI's, double backslashes, Michael Kay |
Month |