[Home] [By Thread] [By Date] [Recent Entries]

  • To: <xml-dev@l...>
  • Subject: replacing ref elements to inline elements
  • From: "De Heer, Robert S - San Mateo, CA - Contractor" <Robert.S.DeHeer@u...>
  • Date: Thu, 1 Dec 2005 16:13:38 -0800
  • Thread-index: AcX21T5V6VKOft5cRn+GwueqVrhuhA==
  • Thread-topic: replacing ref elements to inline elements

Title: replacing ref elements to inline elements

I have a question regarding programmatically replacing ref tags with the appropriate block of XML. Is there a standard/recommended way to do this? The refs make design easier, but are a headache in certain development processes.

For example, replace refs:

<xs:sequence>

    <xs:element ref="requestor"/>

    <xs:group ref="typeFacilitySpecifier"/>

</xs:sequence>

with:

<xs:element name="requestor">

    <xs:simpleType>

      <xs:restriction base="xs:token">

        <xs:enumeration value="U"/>

      </xs:restriction>

    </xs:simpleType>

</xs:element>

<xs:group name="typeFacilitySpecifier">

    <xs:sequence>

      <xs:element ref="financeNumber"/>

      <xs:element ref="reportingUnitNumber"/>

    </xs:sequence>

</xs:group>

Thanks,

Rob


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member