OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   replacing ref elements to inline elements

[ Lists Home | Date Index | Thread Index ]
  • To: <xml-dev@lists.xml.org>
  • Subject: replacing ref elements to inline elements
  • From: "De Heer, Robert S - San Mateo, CA - Contractor" <Robert.S.DeHeer@usps.gov>
  • 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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS