I am working on a migration project where the weblogic is getting migrated from weblogic 8 to 10.x
my application uses xquery and when upgraded to higher version i can see some self closing tags getting created in the transformed xml which is not the case with 8.1.
I have given a simple declaration as below
let $a := <find an attribute value>
if the "find an attribute value" returns null then in weblogic 8 the node will not be sent in transformed xml but in weblogic10.x it is parsing the node as self closing one like <abc:value/>
Is this an issue with migration? I know that the xquery upgraded to 2004 and I did took care of that part.
So workaround for me in this case would be? as i have number of direct mappings happening in my code of 8.1 and definitely I can't keep an if else block to make it work.
Well, as you've been relying on a bug then I guess you now have to correct your code.
I don't see how you can do it without using a conditional block.