|
next
|
 Subject: Applying constraints & naming when Elements reference other Elements Author: Brent Nelson Date: 18 Jun 2008 06:36 PM
|
Thanks for the quick reply!
Just to make sure I understand correctly, let me see if I can rephrase. Since I want "MyElement" to be exactly like "other:TheirElement" in every way but name, I need to create "MyElement" using the type used to create "other:TheirElement". So say I look up "TheirElement" in the "other" namespace, find that its type is "other:TheirType". Then I need to create "MyElement" by pointing its type attribute at "other:TheirType". Correct?
If I understand correctly, then you've also answered my question about applying constraint facets. If I create "MyElement" as above, then I'll be declaring it at the global level. Therefore, I can apply "maxLength", etc. constraints to it in the familiar way.
Is it true that constraints can only be applied in this way? I.e., if I need to apply constraint facets to an element, that element can't reference another element but must reference a type, instead. Correct?
Thanks again,
Brent Nelson
|
|
|
|