Re: [xml] XML Schema, unique and namespaces



Hey,
Hi!

I'am trying to write a xml schema which must validate that a given
attribute is unique.
...
       <xsd:selector xpath="ptt:*"/>
...

I belive my problem is, that I can not figure out the correct xpath to
write in the selector.

Yes.
It seems that you want every child (at any level) of 'root' that is in the 'ptt' namespace. Try this:

   <xsd:selector xpath=".//ptt:*"/>

Best of luck!
Piotr



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]