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 ...
|
|
|
|