- From: Noe Michejda <noe_michejda@7thportal.pl>
- Date: Thu, 15 Jan 2004 22:04:54 +0100
- To: <public-qt-comments@w3.org>
F&O section 7.5.4 (definition of function fn:substring-before) states:
"If the value of $arg2 is the zero-length string, then the function returns
the zero-length string."
But later example is given:
"fn:substring-before("Baloney!","") returns "Baloney!". "
Then 7.5.5 fn:substring-after states:
"If the value of $arg2 is the zero-length string, then the function returns
the value of $arg1."
I think error in definition of fn:substring-before, behavior should be the
same as in fn:substring-after.
"If the value of $arg2 is the zero-length string, then the function returns
the value of $arg1."
If definition is correct and example mistaken, I think it is bad idea to
return zero-length string in such case.
Best regards,
Noe Michejda
7th Portal S.C.
Received on Thursday, 15 January 2004 16:12:57 UTC