Re: Error in STRAFTER() example?

On 05/11/12 12:34, Steve Harris wrote:
> Spotted by the engineering team here.
>
> http://www.w3.org/TR/2012/WD-sparql11-query-20120724/#func-strafter
>
> This example seems to be wrong:
> strafter("abc"^^xsd:string,"")	""^^xsd:string
> I believe it should be
> strafter("abc"^^xsd:string,"")	"abc"^^xsd:string
>
> The fn:substring-after says "If the value of $arg2 is the zero-length string, then the function returns the value of $arg1."
>
> - Steve
>

Agree (and the last example in that block is right)

Correction made.

	Andy

Received on Monday, 5 November 2012 21:04:37 UTC