tsd:function

Hello,

I have a problem with the tsd:function. I played around with the example and got this error:

required attribute missing - attribute “name” in element “tsd:function” INOXDE7712
tsd:function
<tsd:name xmlns:company=“http://www.company.com/functions”>
company:createDefaultString</tsd:name>
</tsd:function>

So I changed the code to this
<tsd:function name=“SXSJIDQuery.getID”></tsd:function>
… and it works.

First question - is that the way it was ment to be?

But refering to the documentation: “The function call is executed whenever a default value is needed” - its not working within an update scenario.

Second question - is this related to my changes?

Please help.
Henning

btw. I use Tamino 4.4.1.1

Hi Henning,

sorry for being slightly late with my answer.

(1)

So I changed the code to this

… and it works.

First question - is that the way it was ment to be?

Answer: yes

(2)

But refering to the documentation: “The function call is executed whenever a default value is needed” - its not working within an update scenario.

Second question - is this related to my changes?

Answer: please provide more details?
What do you mean by update scenario? Do you insert a document fragment using XQuery or are you replacing the whole document using PROCESS?
For further explanation pls provide the complete schema as well as the old and new document or XQuery update statement you are using to update the document.

Regards
Uli