I meant
<xsl:variable name="OutFileName" select=" substring-before($fileHref,
tokenize($fileHref,'/')[last()] ) || $outDir || '/' || substring-before(
tokenize($fileHref,'/')[last()] ,'.xml') || '-Formatted.xml'"/>
I can also take tokenize($fileHref,'/')[last()] in a variable and use it in
the string operation above. But is there a better way ?
On Aug 24, 2016 12:16 PM, "Mailing Lists Mail daktapaal(_at_)gmail(_dot_)com" <
xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com> wrote:
Dear all,
I have the following two params
<xsl:param name = “fileHref” select = “
‘P:/developers/perf/bigPayload.xml’ ”/>
<xsl:param name="outDir" select="'outDir'"/>
I want OutFileName to be :
‘P:/developers/perf/outDir/bigPayload-Formatted.xml’
Is there a better way to do this than what I did?
<xsl:variable name="OutFileName" select=" substring-before($fileHref,
tokenize($fileHref,'/')[last() -1 ] ) || $outDir || '/' ||
substring-before( tokenize($fileHref,'/')[last()] ,'.xml') ||
'-Formatted.xml'"/>
thanks.
Dt
XSL-List info and archive
EasyUnsubscribe (by email)
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--