logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Re: Validating xml schema with xml doc Containing list of strings: msg#00003

Subject: Re: Validating xml schema with xml doc Containing list of strings
Hi Ram,

You can accomplish what you want with xs:ID/xs:IDREF(s) but if you're 
using identity constraints the keyref value needs to be *equal* [1][2] to 
a key value. "clean setup" and "setup" are not equal.

Thanks.

[1] http://www.w3.org/TR/xmlschema-1/#d0e13819
[2] 
http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#equal

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@xxxxxxxxxx
E-mail: mrglavas@xxxxxxxxxx

sriram <sriram.sub@xxxxxxxxx> wrote on 07/09/2007 02:16:16 PM:

> Hi,
> 
> I am trying to validate an xml doc with a schema that defines a 
> specific attribute to be a list of strings such that <task 
> parents="clean setup">. Here clean and setup are two different 
> tasks. Now I have defined a schema where there is a key reference to
> name of the task. <task name="setup">. So the values within parents 
> attribute should exist only if a task name already exist of the same
> name. When I parse it I get an error like this 
> 
> XML Document has Error:truecvc-identity-constraint.4.3: Key 
> 'referenceName' with value 'cleanup setup' not found for identity 
> constraint of element 'Workflow'.
> 
> but I want cleanup and setup to be considered as two seperate 
> elements rather than one. How do I make the parser do tht. I am 
> surprised that I need to do anything since the schema explains it to
> be a list of strings which the parser needs to understand. Do help 
> me with this. 
> 
> Regards,
> 
> Ram



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Home | blog view | USPTO Patent Archive (NEW!) | advertise | OSDir is an inevitable website. super tiny logo