Subject:xs:key and xs:keyref question Author:Kurt Martin Date:25 Sep 2006 02:36 PM Originally Posted: 25 Sep 2006 02:04 PM
I have the following snippet of XML code:
<proc id="x1036">
<admon class="image-type" type="caution" id="x1037">
<para id="x1038">This is the first paragraph of this caution.</para>
<para id="x1039">This is a second paragraph of this caution.</para>
</admon>
<step1 admonref="x1037" id="x1040">Step referencing admon with id value of 'x1037'.</step1>
</proc>
Validating working.xml...
file:///u:/Schemas/New Structure/working.xml:133,127: The key for identity constraint of element 'step1' is not found.
file:///u:/Schemas/New Structure/working.xml:438,127: The key for identity constraint of element 'step1' is not found.
file:///u:/Schemas/New Structure/working.xml:494,127: The key for identity constraint of element 'step1' is not found.
file:///u:/Schemas/New Structure/working.xml:790,128: The key for identity constraint of element 'step1' is not found.
The XML document working.xml is NOT valid (4 errors)
Subject:xs:key and xs:keyref question Author:Kurt Martin Date:25 Sep 2006 02:32 PM
Actually, I am still not understanding this. I want to use IDREF and ID as attribute types, correct? When I do, the document gets the following errors:
Validating working.xml...
file:///u:/Schemas/New Structure/working.xml:854,8: ID attribute 'x10184' was referenced but never declared
file:///u:/Schemas/New Structure/working.xml:854,8: ID attribute 'x10139' was referenced but never declared
file:///u:/Schemas/New Structure/working.xml:854,8: ID attribute 'x10149' was referenced but never declared
file:///u:/Schemas/New Structure/working.xml:854,8: ID attribute 'x10416' was referenced but never declared
file:///u:/Schemas/New Structure/working.xml:854,8: ID attribute 'x1037' was referenced but never declared
Does anyone see a problem with the syntax as previously shown?
Subject:xs:key and xs:keyref question Author:Tony Lavinio Date:26 Sep 2006 11:52 AM
This is a forum for support of Stylus Studio users, and we don't
recognize the email address you used as one of our registered users.
Could you tell us which version you have so that we could help you
appropriately?