OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] schema validate key uniqueness attribute (name) ofelements

[ Lists Home | Date Index | Thread Index ]

Ah, you need to add the med: prefix in your XPath, so it should be 

med:serviceImport|med:serviceExport

Priscilla
-----------------------------------------------------
Priscilla Walmsley             priscilla@walmsley.com
Author, Definitive XML Schema     (Prentice Hall PTR)
-----------------------------------------------------  

> -----Original Message-----
> From: Pedro Salazar [mailto:pedro-b-salazar@ptinovacao.pt] 
> Sent: Friday, February 20, 2004 12:21 PM
> To: Priscilla Walmsley
> Cc: 'XML DEV'
> Subject: RE: [xml-dev] schema validate key uniqueness 
> attribute (name) ofelements
> 
> On Fri, 2004-02-20 at 17:02, Priscilla Walmsley wrote:
> >
> > I think you want serviceImport|serviceExport instead of
> > serviceImport/serviceExport in your path.  
> > 
> > The "|" operator means "serviceImport or serviceExport", 
> while the slash
> > means that it is looking for a serviceExport child of serviceImport.
> > 
> > Priscilla
> 
> I fixed that but the validation is still OK (not detecting 
> the repeating
> data on the name attribute -> key) on XERCES2 (parser) and Oxygen
> (tool).
> 
> However, do you agree the right definition of the schema to 
> validate my
> purpose? 
> 
> thanks,
> Pedro Salazar.
> -- 
> -PS
> 
> 





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS