« Return to Thread: referencing an already declared element in the schema(not a global element)

RE: re[xml-dev] ferencing an already declared element in the schema(not a global element)

by Michael Kay :: Rate this Message:

Reply to Author | View in Thread

> The following is my schema: For <xs:element
> name="aliasLookUpType">  how can I reuse elements
> "name_first" "arrestee_dob" instead of "name_first_lookup"
> and "arrestee_dob_lookup"
>
> I understand that only a global element can be reused instead
> of something declared in a complexType.
>
> Is there a way to refer to "name_first"?

I think you have answered your own question. If you want to reuse it, you
have to make it global.

Michael Kay
http://www.saxonica.com/


_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@...
subscribe: xml-dev-subscribe@...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php

 « Return to Thread: referencing an already declared element in the schema(not a global element)