W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2001

Re: Illegal use of unique? I need it. Microsoft supports it. Alternatives?

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed, 10 Oct 2001 19:47:12 +0200
Message-ID: <3BC489A0.10407@dyomedea.com>
To: xmlschema-dev@w3.org
Steen Lehmann wrote:

> Hi,
> 
> Just a comment on the restriced XPath syntax in XML Schema:
> 

>>>
>>>However, note use of parent node syntax (..) in the 
>>>
>>selector xpath. Is 
>>
>>>this illegal?
>>>
>>
>>Yes.
>>
> 
> Actually this is not legal as far as I can tell. 


There is no doubt about this and we aggree since I was answering "Yes" 
to the question "Is  this illegal?" :) !

I find it *very* worrying if MSXML4 accepts this, BTW.

Eric

>The selector XPath
> syntax is 
> defined as follows (from XML Schema Part 1):
> 
> [1]    Selector    ::=    Path ( '|' Path )*  
> [2]    Path    ::=    ('.//')? Step ( '/' Step )*  
> [3]    Step    ::=    '.' | NameTest  
> [4]    NameTest    ::=    QName | '*' | NCName ':' '*'  
> 
> As you can see there is no way the Selector can begin with '..'
> 
> -- Steen
> slehmann@silverstream.com
> 
> 
> 
> 
> 



-- 
Rendez-vous  Paris pour une visite guidee de la nebuleuse XML.
                                           http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
------------------------------------------------------------------------
Received on Wednesday, 10 October 2001 13:46:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:24 GMT