Subject:'=' operator does not work with complex-type with simple-content Author:Florian Schöllhammer Date:18 Aug 2004 01:17 PM Originally Posted: 18 Aug 2004 10:42 AM
i tried to compare two nodes with the = operator ... it does not work
i found out, that the fn:data function does not return anything (the element has a complexType with simpleContent - maybe this is the problem, i do not know!)
so i deleted the schema-location in the xml-document and suddenly, the fn:data function return a value!
for more detailed information, please view the source code!
please help me, why is it like that - did i do something wrong
thanks, florian
---
EDIT: i could not manage to upload the xquery file ... it seems, as the server is not able to store it!
PLEASE DOWNLOAD IT HERE: http://www.schoellhammer.at/complex.xquery
Subject:Re: '=' operator does not work with complex-type with simple-content Author:(Deleted User) Date:19 Aug 2004 03:08 PM
Hi Florian,
there is indeed a problem with fn:data, caused by the fact that the element
has been defined using an anonymous type. A recent change in Xerces has
made so we don't get the type name anymore, and we get confused.
We will need some time to talk with the Xerces team to understand why did
that change, so I cannot forecast when the bug will be fixed; in the
meanwhile you can work around the problem by either extracting the string
value of the element or by changing the schema to use a named global type.