Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
XSD keyRef
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Kent B, post: 781837"] Hello people, Sorry if this is the wrong newsgroup. I had a look and couldn't find a more appropriate one for XSD. I have a complex type defined in its own schema as follows: <xsd:complexType name="myType"> <xsd:complexContent> <xsd:extension base="myBaseType"> <xsd:attribute name="parentId" type="xsd:string" use="optional"/> </xsd:extension> </xsd:complexContent> </xsd:complexType> I want to apply a keyRef so that the parentId attribute must refer to a valid ID (defined elsewhere in another schema). However, as far as I can tell, XSD only allows you to specify a keyRef inside an element declaration. But I don't want to declare an element. Does anyone know how I can declare a keyRef without requiring the element? Thanks, Kent [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
XSD keyRef
Top