Hi,

In my schema (inserted in the MarkLogic server) I changed the following 
complexType with
xdmp:node-replace(...) and xdmp:node-insert-after(...):
  
...
<xs:complexType name="assignedTo">
        <xs:simpleContent>
                <xs:extension base="xs:string">
                        <xs:attribute name="dateAssigned">
                                <xs:simpleType>
                                        <xs:restriction base="xs:dateTime"/>
                                </xs:simpleType>
                        </xs:attribute>
                        <xs:attribute name="accepted">
                                <xs:simpleType>
                                        <xs:restriction base="xs:boolean"/>
                                </xs:simpleType>
                        </xs:attribute>
                </xs:extension>
        </xs:simpleContent>
</xs:complexType>
...
  
The restriction for the 'dateAssigned' attribute I changed from xs:string to 
xs:dateTime
and I added the 'accepted' attribute with the xs:boolean restriction.

Right after having done that I got an 'Invalid lexical value' error in regards 
to the
following XQuery code: ... where $x/@projectId = xs:positiveInteger($projectId) 
...
In the schema the 'projectId' attribute is defined as:  <xs:attribute 
name="projectId"
type="xs:positiveInteger"/>

'projectId' is completely unrelated to 'assignedTo' in the schema.

After having tried finding a bug in my code and not changing anything to my 
code at all,
I finally restarted the server in the hope it would solve the problem. It did!

Any ideas?

Thanks, Bart
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to