Publications Office of the EU
Fragmentation - EU Vocabularies
DisplayCustomHeader
Fragmentation

Fragmentation

1. Explanations

Large documents may be divided into fragments which are referenced from within the main document or sub-document instance (also see the element "INCL.ELEMENT"). A fragment can contain any portion of the document which must perfectly suit into the superior instance when the content of the fragment just replaces the reference. A merge process will validate the correct use.

As a fragment can contain different elements on the entry level or root level, it is neither always a valid nor a well-formed document. In order to maintain the possibility to validate a fragment (i.e. a file with the extension ".frg"), it has to be accompanied by a file with the same name, but with the suffix ".frag.xml" instead. This instance supplies a single root element (always FRAGMENT) which only contains an entity reference to the contents of the fragment (= file ".frg"). The entity with the unique name "frag" is defined in the subset of the document type statement in the ".frag.xml" instance.

N.B.: The delivery of the ".frag.xml" instance is mandatory for each fragment (".frg").

2. Example

 

<?xml version="1.0" encoding="UTF-8"?>

 

<!DOCTYPE FRAGMENT [

 

   <!ENTITY frag SYSTEM "CA2002104EN.01000601.frg">

 

]>

 

<FRAGMENT xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Formex4-01.01.20040501.xd">

 

   &frag;

 

</FRAGMENT>

 

 

  翻译: