You do not need to use a namespace prefix for the current-date function. This means a quik workaround is just to drop the namespace prefix from the function call. Furthermore in Tamino 4.4 you do not need to declare the XML schema namespace prefix “xs”. You can use the prefix without declaring it.
Which Tamino version do you use? The current-date() function is only supported by Tamino 4.4. To run your query against Tamino 4.4 you should restate it in the following way:
{xs:date(current-date())}
Since current-date() already delivers an xs:date instance, you can drop the xs:date constructor function. This means you can state your query like this:
I’am used Tamino 4.4, but the Database is 4.2!!!.. I tried to migrate the scheme through “Software AG Tamino 4.4 Scheme Editor”, but I could not. The following error was generated:
" datatype validation for element ‘tsd:which’ of type xs:string failed: (cvc-pattern-valid) Facet ‘pattern’ was violated by a value during validation <INOXDE7703,INOXDE7772>"
use “set version” to bing teh database to 4.4.
It is possible that during this version upgrade, errors concerning non-valid schemas are reported. This is because 4.2. had allowed some schema variants that are not valid according to teh schema spec. If you encounter such a situation, you can use teh schema editor as you describe. It will report the place where the schema violates teh schema spec.
In your case, howver, it seems that the error is in a “tds:which” element. If you cannot find out teh cause by yourself, please post this schema part (the tsd:which element)
great that your query works now! Nevertheless you should check the job log from SET VERSION or issue the following command in order to detect schema incompatibilities as mentioned by Harald Schoening:
_admin=ino:CheckSchema( [ collection, [schema] ])
Probably, the same message as before should show up. In order to avoid future problems, you should fix that. In case of doubt, you may provide your schema as an attachment.