<!-- XML DTD para representar el documento IFTSTA de UN/EDIFACT -->
<!-- **** -->
<!-- ROOT -->
<!-- **** -->
<!-- ESTRUCTURA DE PRUEBA CON TODOS LOS SEGMENTOS -->
<!--ELEMENT IFTSTA (trsd_beginning.of.message, trsd_consignment.information, trsd_date.time.period, trsd_equipment.details, trsd_free.text, trsd_place.location.identification, trsd_name.and.address, trsd_reference, trsd_status, trsd_details.of.transport, anxs_interchange.header, anxs_message.header, anxs_message.trailer, anxs_interchange.trailer)-->
<!ELEMENT IFTSTA (anxs_interchange.header?, anxs_message.header, trsd_beginning.of.message, trsd_date.time.period?, IFTSTA.GROUP1*, IFTSTA.GROUP3*, IFTSTA.GROUP4, anxs_message.trailer, anxs_interchange.trailer)>
<!ELEMENT IFTSTA.GROUP1 (trsd_name.and.address)>
<!ELEMENT IFTSTA.GROUP3 (trsd_reference)>
<!ELEMENT IFTSTA.GROUP4 (trsd_consignment.information, IFTSTA.GROUP5+)>
<!ELEMENT IFTSTA.GROUP5 (trsd_status, trsd_reference*, trsd_date.time.period*, trsd_free.text*, trsd_place.location.identification?, IFTSTA.GROUP6*, IFTSTA.GROUP8*)>
<!ELEMENT IFTSTA.GROUP6 (trsd_details.of.transport, IFTSTA.GROUP7*)>
<!ELEMENT IFTSTA.GROUP7 (trsd_place.location.identification, trsd_date.time.period*)>
<!ELEMENT IFTSTA.GROUP8 (trsd_equipment.details)>
<!-- ********* -->
<!-- SEGMENTOS -->
<!-- ********* -->
<!-- Segment: BGM BEGINNING OF MESSAGE -->
<!ELEMENT trsd_beginning.of.message (trcd_document.message.name?, trcd_document.message.identification?, tred_message.function.coded?, tred_response.type.coded?)>
<!-- Composite: C002 DOCUMENT/MESSAGE NAME -->
<!ELEMENT trcd_document.message.name (tred_document.message.name.coded?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_document.message.name?)>
<!ELEMENT tred_document.message.name.coded (#PCDATA)>
<!ELEMENT tred_code.list.qualifier (#PCDATA)>
<!ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)>
<!ELEMENT tred_document.message.name (#PCDATA)>
<!-- Composite: C106 DOCUMENT/MESSAGE IDENTIFICATION -->
<!ELEMENT trcd_document.message.identification (tred_document.message.number?, tred_version?, tred_revision.number?)>
<!ELEMENT tred_document.message.number (#PCDATA)>
<!ELEMENT tred_version (#PCDATA)>
<!ELEMENT tred_revision.number (#PCDATA)>
<!ELEMENT tred_message.function.coded (#PCDATA)>
<!ELEMENT tred_response.type.coded (#PCDATA)>
<!-- Segment: CNI CONSIGNMENT INFORMATION -->
<!ELEMENT trsd_consignment.information (tred_consolidation.item.number?, trcd_document.message.details?, tred_consignment.load.sequence.number?)>
<!ELEMENT tred_consolidation.item.number (#PCDATA)>
<!-- Composite: C503 DOCUMENT/MESSAGE DETAILS -->
<!ELEMENT trcd_document.message.details (tred_document.message.number?, tred_document.message.status.coded?, tred_document.message.source?, tred_language.coded?)>
<!--ELEMENT tred_document.message.number (#PCDATA)-->
<!ELEMENT tred_document.message.status.coded (#PCDATA)>
<!ELEMENT tred_document.message.source (#PCDATA)>
<!ELEMENT tred_language.coded (#PCDATA)>
<!ELEMENT tred_consignment.load.sequence.number (#PCDATA)>
<!-- Segment: DTM DATE/TIME/PERIOD -->
<!ELEMENT trsd_date.time.period (tred_date.time.period.qualifier?, tred_date.time.period?, tred_date.time.period.format.qualifier?)>
<!ELEMENT tred_date.time.period.qualifier (#PCDATA)>
<!ELEMENT tred_date.time.period (#PCDATA)>
<!ELEMENT tred_date.time.period.format.qualifier (#PCDATA)>
<!-- Segment: EQD EQUIPMENT DETAILS -->
<!ELEMENT trsd_equipment.details (tred_equipment.qualifier, trcd_equipment.identification?, trcd_equipment.size.and.type?, tred_equipment.supplier.coded?, tred_equipment.status.coded?, tred_full.empty.indicator.coded?)>
<!ELEMENT tred_equipment.qualifier (#PCDATA)>
<!-- Composite: C237 EQUIPMENT IDENTIFICATION -->
<!ELEMENT trcd_equipment.identification (tred_equipment.identification.number?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_country.coded?)>
<!ELEMENT tred_equipment.identification.number (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_country.coded (#PCDATA)>
<!-- Composite: C224 EQUIPMENT SIZE AND TYPE -->
<!ELEMENT trcd_equipment.size.and.type (tred_equipment.size.and.type.identification?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_equipment.size.and.type?)>
<!ELEMENT tred_equipment.size.and.type.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_equipment.size.and.type (#PCDATA)>
<!ELEMENT tred_equipment.supplier.coded (#PCDATA)>
<!ELEMENT tred_equipment.status.coded (#PCDATA)>
<!ELEMENT tred_full.empty.indicator.coded (#PCDATA)>
<!-- Segment: FTX FREE TEXT -->
<!ELEMENT trsd_free.text (tred_text.subject.qualifier, tred_text.function.coded?, trcd_text.reference?, trcd_text.literal?, tred_language.coded?)>
<!ELEMENT tred_text.subject.qualifier (#PCDATA)>
<!ELEMENT tred_text.function.coded (#PCDATA)>
<!-- Composite: C107 TEXT REFERENCE -->
<!ELEMENT trcd_text.reference (tred_free.text.identification, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?)>
<!ELEMENT tred_free.text.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT trcd_text.literal (tred_free.text+)>
<!ELEMENT tred_free.text (#PCDATA)>
<!--ELEMENT tred_language.coded (#PCDATA)-->
<!-- Segment: LOC PLACE/LOCATION IDENTIFICATION -->
<!ELEMENT trsd_place.location.identification (tred_place.location.qualifier, trcd_location.identification?, trcd_related.location.one.identification?, trcd_related.location.two.identification?, tred_relation.coded?)>
<!ELEMENT tred_place.location.qualifier (#PCDATA)>
<!-- Composite: C517 LOCATION IDENTIFICATION -->
<!ELEMENT trcd_location.identification (tred_place.location.identification?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_place.location?)>
<!ELEMENT tred_place.location.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_place.location (#PCDATA)>
<!-- Composite: C519 RELATED LOCATION ONE IDENTIFICATION -->
<!ELEMENT trcd_related.location.one.identification (tred_related.place.location.one.identification?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_related.place.location.one?)>
<!ELEMENT tred_related.place.location.one.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_related.place.location.one (#PCDATA)>
<!-- Composite: C553 RELATED LOCATION TWO IDENTIFICATION -->
<!ELEMENT trcd_related.location.two.identification (tred_related.place.location.two.identification?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_related.place.location.two?)>
<!ELEMENT tred_related.place.location.two.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_related.place.location.two (#PCDATA)>
<!ELEMENT tred_relation.coded (#PCDATA)>
<!-- Segment: NAD NAME AND ADDRESS -->
<!ELEMENT trsd_name.and.address (tred_party.qualifier, trcd_party.identification.details?, trcd_name.and.address?, trcd_party.name?, trcd_street?, tred_city.name?, tred_country.sub.entity.identification?, tred_postcode.identification?, tred_country.coded?)>
<!ELEMENT tred_party.qualifier (#PCDATA)>
<!-- Composite: C082 PARTY IDENTIFICATION DETAILS -->
<!ELEMENT trcd_party.identification.details (tred_party.id.identification, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?)>
<!ELEMENT tred_party.id.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!-- Composite: C058 NAME AND ADDRESS -->
<!ELEMENT trcd_name.and.address (tred_name.and.address.line+)>
<!ELEMENT tred_name.and.address.line (#PCDATA)>
<!-- Composite: C080 PARTY NAME -->
<!ELEMENT trcd_party.name (tred_party.name+, tred_party.name.format.coded?)>
<!ELEMENT tred_party.name (#PCDATA)>
<!ELEMENT tred_party.name.format.coded (#PCDATA)>
<!-- Composite: C059 STREET -->
<!ELEMENT trcd_street (tred_street.and.number.p.o.box+)>
<!ELEMENT tred_street.and.number.p.o.box (#PCDATA)>
<!ELEMENT tred_city.name (#PCDATA)>
<!ELEMENT tred_country.sub.entity.identification (#PCDATA)>
<!ELEMENT tred_postcode.identification (#PCDATA)>
<!--ELEMENT tred_country.coded (#PCDATA)-->
<!-- Segment: RFF REFERENCE -->
<!ELEMENT trsd_reference (tred_reference.qualifier, tred_reference.number?, tred_line.number?, tred_reference.version.number?)>
<!ELEMENT tred_reference.qualifier (#PCDATA)>
<!ELEMENT tred_reference.number (#PCDATA)>
<!ELEMENT tred_line.number (#PCDATA)>
<!ELEMENT tred_reference.version.number (#PCDATA)>
<!-- Segment: STS STATUS -->
<!ELEMENT trsd_status (trcd_status.type?, trcd_status.event?, trcd_status.reason?)>
<!-- Composite: C601 STATUS TYPE -->
<!ELEMENT trcd_status.type (tred_status.type.coded, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?)>
<!ELEMENT tred_status.type.coded (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!-- Composite: C555 STATUS EVENT -->
<!ELEMENT trcd_status.event (tred_status.event, tred_status.event.coded?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?)>
<!ELEMENT tred_status.event (#PCDATA)>
<!ELEMENT tred_status.event.coded (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!-- Composite: C556 STATUS REASON -->
<!ELEMENT trcd_status.reason (tred_status.reason.coded, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_status.reason?)>
<!ELEMENT tred_status.reason.coded (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_status.reason (#PCDATA)>
<!-- Segment: TDT DETAILS OF TRANSPORT -->
<!ELEMENT trsd_details.of.transport (tred_transport.stage.qualifier, tred_conveyance.reference.number?, trcd_mode.of.transport?, trcd_transport.means?, trcd_carrier?, tred_transit.direction.coded?, trcd_excess.transportation.information?, trcd_transport.identification?, tred_transport.ownership.coded?)>
<!ELEMENT tred_transport.stage.qualifier (#PCDATA)>
<!ELEMENT tred_conveyance.reference.number (#PCDATA)>
<!-- Composite: C220 MODE OF TRANSPORT -->
<!ELEMENT trcd_mode.of.transport (tred_mode.of.transport.coded?, tred_mode.of.transport?)>
<!ELEMENT tred_mode.of.transport.coded (#PCDATA)>
<!ELEMENT tred_mode.of.transport (#PCDATA)>
<!-- Composite: C228 TRANSPORT MEANS -->
<!ELEMENT trcd_transport.means (tred_type.of.means.of.transport.identification?, tred_type.of.means.of.transport?)>
<!ELEMENT tred_type.of.means.of.transport.identification (#PCDATA)>
<!ELEMENT tred_type.of.means.of.transport (#PCDATA)>
<!-- Composite: C040 CARRIER -->
<!ELEMENT trcd_carrier (tred_carrier.identification?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_carrier.name?)>
<!ELEMENT tred_carrier.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_carrier.name (#PCDATA)>
<!ELEMENT tred_transit.direction.coded (#PCDATA)>
<!-- Composite: C401 EXCESS TRANSPORTATION INFORMATION -->
<!ELEMENT trcd_excess.transportation.information (tred_excess.transportation.reason.coded, tred_excess.transportation.responsibility.coded, tred_customer.authorization.number?)>
<!ELEMENT tred_excess.transportation.reason.coded (#PCDATA)>
<!ELEMENT tred_excess.transportation.responsibility.coded (#PCDATA)>
<!ELEMENT tred_customer.authorization.number (#PCDATA)>
<!-- Composite: C222 TRANSPORT IDENTIFICATION -->
<!ELEMENT trcd_transport.identification (tred_id.of.means.of.transport.identification?, tred_code.list.qualifier?, tred_code.list.responsible.agency.coded?, tred_id.of.the.means.of.transport?, tred_nationality.of.means.of.transport.coded?)>
<!ELEMENT tred_id.of.means.of.transport.identification (#PCDATA)>
<!--ELEMENT tred_code.list.qualifier (#PCDATA)-->
<!--ELEMENT tred_code.list.responsible.agency.coded (#PCDATA)-->
<!ELEMENT tred_id.of.the.means.of.transport (#PCDATA)>
<!ELEMENT tred_nationality.of.means.of.transport.coded (#PCDATA)>
<!ELEMENT tred_transport.ownership.coded (#PCDATA)>
<!-- Segment: UNB Interchange Header -->
<!ELEMENT anxs_interchange.header (anxc_syntax.identifier, anxc_interchange.sender, anxc_interchange.recipient, anxc_date.time.of.preparation, anxe_interchange.control.reference)>
<!-- Composite: S001 SYNTAX IDENTIFIER -->
<!ELEMENT anxc_syntax.identifier (anxe_syntax.identifier, anxe_syntax.version.number)>
<!ELEMENT anxe_syntax.identifier (#PCDATA)>
<!ELEMENT anxe_syntax.version.number (#PCDATA)>
<!-- Composite: S002 INTERCHANGE SENDER -->
<!ELEMENT anxc_interchange.sender (anxe_sender.identification, anxe_recipients.identification.qualifer?, anxe_address.for.reverse.routing?)>
<!ELEMENT anxe_sender.identification (#PCDATA)>
<!ELEMENT anxe_recipients.identification.qualifer (#PCDATA)>
<!ELEMENT anxe_address.for.reverse.routing (#PCDATA)>
<!-- Composite: S003 INTERCHANGE RECIPIENT -->
<!ELEMENT anxc_interchange.recipient (anxe_recipient.identification, anxe_recipients.identification.qualifer?, anxe_routing.address?)>
<!ELEMENT anxe_recipient.identification (#PCDATA)>
<!--ELEMENT anxe_recipients.identification.qualifer (#PCDATA)-->
<!ELEMENT anxe_routing.address (#PCDATA)>
<!-- Composite: S004 DATE/TIME OF PREPARATION -->
<!ELEMENT anxc_date.time.of.preparation (anxe_date, anxe_time)>
<!ELEMENT anxe_date (#PCDATA)>
<!ELEMENT anxe_time (#PCDATA)>
<!ELEMENT anxe_interchange.control.reference (#PCDATA)>
<!-- Segment: UNH Message Header -->
<!ELEMENT anxs_message.header (anxe_message.reference.number, anxc_message.identifier, anxe_common.access.reference?, anxc_status.of.the.transfer?)>
<!ELEMENT anxe_message.reference.number (#PCDATA)>
<!-- Composite: S009 MESSAGE IDENTIFIER -->
<!ELEMENT anxc_message.identifier (anxe_message.type, anxe_message.version.number, anxe_message.release.number, anxe_controlling.agency, anxe_association.assigned.code?)>
<!ELEMENT anxe_message.type (#PCDATA)>
<!ELEMENT anxe_message.version.number (#PCDATA)>
<!ELEMENT anxe_message.release.number (#PCDATA)>
<!ELEMENT anxe_controlling.agency (#PCDATA)>
<!ELEMENT anxe_association.assigned.code (#PCDATA)>
<!ELEMENT anxe_common.access.reference (#PCDATA)>
<!-- Composite: S010 STATUS OF THE TRANSFER -->
<!ELEMENT anxc_status.of.the.transfer (anxe_sequence.of.transfers, anxe_first.and.last.transfer?)>
<!ELEMENT anxe_sequence.of.transfers (#PCDATA)>
<!ELEMENT anxe_first.and.last.transfer (#PCDATA)>
<!-- Segment: UNT Message Trailer -->
<!ELEMENT anxs_message.trailer (anxe_number.of.segments.in.the.message, anxe_message.reference.number)>
<!ELEMENT anxe_number.of.segments.in.the.message (#PCDATA)>
<!--ELEMENT anxe_message.reference.number (#PCDATA)-->
<!-- Segment: UNZ Interchange Trailer -->
<!ELEMENT anxs_interchange.trailer (anxe_interchange.control.count, anxe_interchange.control.reference)>
<!ELEMENT anxe_interchange.control.count (#PCDATA)>
<!--ELEMENT anxe_interchange.control.reference (#PCDATA)-->

