Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Use of key/keyref - any best practices? warnings? [Thread Next] Re: Use of key/keyref - any best practices? warnings?To: lists@----------.--- Date: 2/28/2005 5:57:00 PM Thanks Jeff: Seems you are right. I was convinced I had tried both variants to no avail but this time @my:clientId worked fine. my:@clientId on the other hand produced the same error messages I had seen before informing me that this was "invalid in the context of the subset of xpath supported by xml schema" or "an invalid restricted xpath expression". I was obviously reading too much into these messages when they were in fact just polite forms of "What the.....?". Cheers Jack >From: Jeff Rafter <lists@j...> >Reply-To: lists@j... >To: Jack Lindsey <tuquenukem@h...> >CC: mike@s..., nwh@a..., xmlschema-dev@w... >Subject: Re: Use of key/keyref - any best practices? warnings? >Date: Wed, 27 Jul 2005 19:37:28 -0700 > > >>But this is not: >> >> <xs:key name="KeyClientById"> >> <xs:selector xpath="my:Clients/my:Client"/> >> <xs:field xpath="my:@clientId"/> >> </xs:key> > >Haven't tested it, but shouldn't that be: > > <xs:field xpath="@my:clientId"/> > >BTW, which validator were you using to test this? I would like to try it >when I run my tests (when I get a chance). > >Cheers, >Jeff Rafter > _________________________________________________________________ Take advantage of powerful junk e-mail filters built on patented Microsoft® SmartScreen Technology. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN® Premium right now and get the first two months FREE*. From vivekorama@g... Tue Mar 01 08:17:49 2005 Received: from wiggum.w3.or | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
