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

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 UTC