A
Al Bondy
Hi,
I'm trying to use the XSL function string-join() as explained at the
following link : http://www.w3.org/TR/xpath-functions/#func-string-join
Here is my line of code
<xsl:value-of select="string-join(('Now','is','the','time','...'),'
')" />
which returns the following error :
"System.Xml.Xsl.XsltException:
'string-join(('Now','is','the','time','...'),' ')' is an invalid XPath
expression."
I would expect the following string:
"Now is the time ..."
However, this line of code
<xsl:value-of select="concat('Now ','is ','the ','time ','...')" />
returns me the expected string, telling me that my problem is with the
string-join() function
"Now is the time ..."
But, I need to use the string-join() function...
Here is the header of my XSL file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" >
Any help will be much appreciated.
Al
I'm trying to use the XSL function string-join() as explained at the
following link : http://www.w3.org/TR/xpath-functions/#func-string-join
Here is my line of code
<xsl:value-of select="string-join(('Now','is','the','time','...'),'
')" />
which returns the following error :
"System.Xml.Xsl.XsltException:
'string-join(('Now','is','the','time','...'),' ')' is an invalid XPath
expression."
I would expect the following string:
"Now is the time ..."
However, this line of code
<xsl:value-of select="concat('Now ','is ','the ','time ','...')" />
returns me the expected string, telling me that my problem is with the
string-join() function
"Now is the time ..."
But, I need to use the string-join() function...
Here is the header of my XSL file:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema" >
Any help will be much appreciated.
Al