Hi,
Thanks, Eddie. I did what you suggested too, and retested again
after reading your message. The parser still doesn't complain.
I had a closer look and I didn't realize that you used a targetNamespace for your schema. Since the selector and field elements use XPath notation you will have to declare a prefix for your namespace that you can use in the XPath expression. The reason for this is that XPath doesn't support default namespaces. See below.
You have to add a namespace declaration with a prefix for your targetNamespace as well. For example:<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.bts.com/pcsp"
xmlns="http://www.bts.com/pcsp" xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
xmlns:p="http://www.bts.com/pcsp"
In the xpath attribute for selector and field you must use this new declared prefix on your elements:
<xs:element name="Contact">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="Title" type="xs:string"/>
<xs:element name="Phone" type="xs:string"/>
<xs:element name="Email" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:key name="ContactKey">
<xs:selector xpath="Contact"/>
<xs:field xpath="Name"/>
</xs:key>
<xs:key name="ContactKey"> <xs:selector xpath="p:Contact"/> <xs:field xpath="p:Name"/> </xs:key>
Cheers, /Eddie
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
