A kind of method for packing of XBRL instance documents
Technical field
The present invention relates to XBRL digitized informations disclose technology, more particularly to a kind of method for packing of XBRL instance documents.
Background technology
Extensible Business Reporting Language(EXtensible Business Reporting Language, XBRL)It is to be based on
XML, in one kind application in business report field, is to be applied to unstructured information at present, especially one kind of Financial information processing
Technical standard.It is in USA CPA Huffman in 1998(Hoffman)Et al. suggestion under progressively set up
's.At that time, Huffman et al. thought that XML can't be accorded with completely after being studied the XML technology for e-finance report
The specific demand of business report is closed, the computer instruction table of XML must be expanded to including the description of more specific business report, can not only
Recognize each data, but also be able to tell that how computer should be processed, how to be connected with the information that other are marked, should be
The inscape of data for where connecting these data and being connected with business report.At present, XBRL development ten at home and abroad
Divide rapid, particularly in supervision areas such as securities business supervision, banking supervision, financial accounting supervision, tax supervision, statistics supervision,
XBRL is even more and is widely used.
XBRL is by XML(Extensible Markup Language, extensible markup language)Element and kernel language group
Into, by increasing specific mark to the content in business report and classifying, allow computer to recognize relevant information, so it is right
Relevant information is verified and analyzed.
XBRL systems generally comprise three parts:XBRL technical specifications(Specification), XBRL criteria for classifications
(Taxonomy), XBRL instance documents(Instance Document).
XBRL technical specifications are the superclasses of XBRL technologies, define the various technical terms and technology essential factor of XBRL, to
The formulation of specification criteria for classification and the making of instance document;XBRL criteria for classifications are according in XBRL technical specifications and business report
Hold the set of the marked report information formulated;XBRL instance documents are according to XBRL technical specifications and XBRL criteria for classification systems
The file comprising practical commercial report information made.
During digitized information disclosure is carried out using XBRL technologies, need XBRL instance documents and its correlation
Classification information, index information, formatted message etc. are transmitted.The method adopted in prior art is that information announcing people will be above-mentioned
Relevant information required for these making, issue, application and admin instance document is encapsulated as a package file, then by this envelope
Dress file is transferred to information announcing organizer.However, the development disclosed with digitized information, generates increasing difference
The auxiliary information that the needs of form are disclosed(That is all kinds of auxiliary informations of XBRL instance documents), for example including picture, audio frequency or even
The media file of video.Because the method for packing of prior art is not to the logic between XBRL instance documents and its auxiliary information
The description rule for determining is provided, information announcing people may not know how to use appropriate description rule with will be including XBRL examples
The file of document and its auxiliary information is packaged, and this just brings the difficulty of operation to information announcing people.Further, since different
Information announcing people may to the logic between XBRL instance documents and its auxiliary information adopt different description rules, if letter
Breath is disclosed people and still XBRL instance documents and its auxiliary information is packaged using the method for packing of prior art, by for follow-up
Difficulty is brought to the decapsulation process of package file.
Therefore, those skilled in the art is devoted to developing a kind of method for packing of XBRL instance documents, makes encapsulating structure
Change, standardize, be beneficial to information announcing people to including the encapsulation operation of XBRL instance documents and its file of auxiliary information and sharp
Operate in the follow-up decapsulation to package file.
The content of the invention
In view of the drawbacks described above of prior art, present invention solves the technical problem that there are provided a kind of XBRL examples text
The method for packing of shelves, by the package file for building multilayer bibliographic structure, realizes encapsulating structure, the standardization of instance document.
For achieving the above object, the invention provides a kind of method for packing of XBRL instance documents, it is characterised in that bag
Include:
Step 100, the file for preparing needs encapsulation, the file of the needs encapsulation is including at least an XBRL examples text
Shelves;
Step 200, generation file, generate encapsulation catalogue, need the file of encapsulation and the file of the generation to deposit by described
Store up the encapsulation catalogue and be compressed to obtain package file;
Wherein, the file that generates is, according to the file for needing and encapsulating, at least to generate attribute information file, relation rope
Quotation part and types index file;The encapsulation catalogue that generates is, according to the file for needing and encapsulating, at least to generate root
With instance document catalogue, attribute information catalogue and relation index list, the instance document catalogue, the attribute information catalogue and
The relation index list is next layer of catalogue of the root;It is described by the file for needing encapsulation and the generation
File storage include at least to the encapsulation catalogue types index file is stored in the root, by the relation
Index file is stored in the relation index list, by the XBRL instance documents be stored in the instance document catalogue with
And the attribute information file is stored in the attribute information catalogue.
Further, in the step 200 the generation file, generation encapsulation catalogue and described by the need
The execution sequence that the file to be encapsulated and the file of the generation are stored to the encapsulation catalogue includes:
First carry out the generation file, then perform it is described generate encapsulation catalogue, perform then described needs encapsulation by described
File and the generation file storage to the encapsulation catalogue;
First carry out it is described generate encapsulation catalogue, then perform the generation file, perform then described needs encapsulation by described
File and the generation file storage to the encapsulation catalogue;
The generation file, generation encapsulation catalogue and the file for encapsulating the needs and institute are performed simultaneously
The file storage of generation is stated to the encapsulation catalogue.
Further, the step 200 includes:
Step 210, the attribute information file is at least generated, the generation attribute information file includes foundation
OpenXML standards carry out information extraction to the XBRL instance documents;
Step 220, the relation index file is generated, the generation relation index file is included according to OpenXML
The relation of the file that standard is generated to the file for needing to encapsulate and the step 210 is indexed;
Step 230, generation types index file, the generation types index file is included according to OpenXML standards to institute
The type for stating the file for needing the file and the step 210 and the step 220 of encapsulation to generate is indexed.
Further, the compression adopts ZIP forms.
Further, the method for packing of the XBRL instance documents also includes:
Step 300, data check is carried out to the package file.
Further, the data check in the step 300 includes CRC check, relation index-check and type rope
Draw verification;
The CRC check is verified according to ZIP format specifications to the package file;
The relation index-check is verified according to OpenXML standards to the relation index file;
The types index verification is verified according to OpenXML standards to the types index file.
Further, it is described to need the file of encapsulation also to include the corresponding index template file of the XBRL instance documents;
The encapsulation catalogue also includes template directory, and the template directory is next layer of catalogue of the root;It is described by the need
The file and the file storage of the generation to be encapsulated also is included to the encapsulation catalogue and is stored in the index template file
In the template directory.
Further, it is described to need the file of encapsulation also to include the corresponding criteria for classification file of the XBRL instance documents;
The encapsulation catalogue also includes criteria for classification catalogue, and the criteria for classification catalogue is next layer of mesh of the instance document catalogue
Record;It is described to the encapsulation catalogue also to include the file for needing encapsulation and the storage of the file of the generation by the classification
Normative document is stored in the criteria for classification catalogue.
Further, the file of the needs encapsulation in the step 100 is also comprising XBRL instance documents correspondence
Resource file;The encapsulation catalogue also includes Resource TOC, and the Resource TOC is next layer of catalogue of the root;Institute
State and to the encapsulation catalogue also include the file for needing encapsulation and the storage of the file of the generation by the resource file
In being stored in the Resource TOC.
Further, the resource file includes picture category resource file, audio class resource file, video class resource text
One in part, script type resource file, text class resource file, binary class resource file and package file class resource file
Or it is multiple;
The encapsulation catalogue also includes picture resource catalogue, audio resource catalogue, video resource catalogue, script resource mesh
Record, textual resources catalogue, Binary Resources catalogue and package file Resource TOC, the picture resource catalogue, audio frequency money
Source directory, the video resource catalogue, the script Resource TOC, the textual resources catalogue, the Binary Resources catalogue
With the next layer of catalogue that the package file Resource TOC is the Resource TOC;
The resource file is stored in the Resource TOC and is included:
The picture category resource file is stored in the picture resource catalogue;
The audio class resource file is stored in the audio resource catalogue;
The video class resource file is stored in the video resource catalogue;
The script type resource file is stored in the script Resource TOC;
The text class resource file is stored in the textual resources catalogue;
The binary class resource file is stored in the Binary Resources catalogue;And/or
The package file class resource file is stored in the package file Resource TOC.
Further, the step 210 is also comprising the layout files for generating the correspondence XBRL instance documents;The encapsulation
Catalogue also includes format catalogue, and the format catalogue is next layer of catalogue of the root;It is described to need what is encapsulated by described
File and the storage of the file of the generation are also included to the encapsulation catalogue and for the layout files to be stored in the format catalogue
In.
Further, the layout files includes the layout files of XSLT forms conversion and/or the format text of CSS style sheet
Part.
Further, the step 210 is also comprising the file publishing for generating the correspondence XBRL instance documents;The encapsulation
Also comprising catalogue is issued, the issue catalogue is next layer of catalogue of the root to catalogue;It is described to need what is encapsulated by described
File and the storage of the file of the generation are also included to the encapsulation catalogue and for the file publishing to be stored in the issue catalogue
In;The generation attribute information file in the step 210 is also included according to OpenXML standards to the file publishing
Carry out information extraction.
Further, the form of the file publishing includes PDF, HTML, RTF and/or Office OpenXML.
Alternatively, the step 210 is also believed the XBRL instance documents and the attribute comprising foundation OpenXML standards
Breath file is digitally signed, and generates digital signature file;The encapsulation catalogue also includes signature catalogue, and the signature catalogue is
Next layer of catalogue of the root;It is described that the file for needing encapsulation and the storage of the file of the generation are arrived into the encapsulation
Catalogue also includes and the signature file is stored in the signature catalogue.
Alternatively, the step 210 is also included according to OpenXML standards to the index template file, to the XBRL
Instance document and the attribute information file are digitally signed, and generate digital signature file;The encapsulation catalogue is also comprising label
Name catalogue, the signature catalogue is next layer of catalogue of the root;The file that the needs are encapsulated and the life
Into file storage to the encapsulation catalogue also comprising the signature file is stored in the signature catalogue.
Alternatively, the step 210 is also included according to OpenXML standards to the criteria for classification file, to the XBRL
Instance document and the attribute information file are digitally signed, and generate digital signature file;The encapsulation catalogue is also comprising label
Name catalogue, the signature catalogue is next layer of catalogue of the root;The file that the needs are encapsulated and the life
Into file storage to the encapsulation catalogue also comprising the signature file is stored in the signature catalogue.
Alternatively, the step 210 is also included according to OpenXML standards to the resource file, to the XBRL examples
Document and the attribute information file are digitally signed, and generate digital signature file;The encapsulation catalogue is also comprising signature mesh
Record, the signature catalogue is next layer of catalogue of the root;It is described by the file for needing encapsulation and the generation
File storage also includes to the encapsulation catalogue and the signature file is stored in the signature catalogue.
Alternatively, the step 210 is also included according to OpenXML standards to the layout files, to the XBRL examples
Document and the attribute information file are digitally signed, and generate digital signature file;The encapsulation catalogue is also comprising signature mesh
Record, the signature catalogue is next layer of catalogue of the root;It is described by the file for needing encapsulation and the generation
File storage also includes to the encapsulation catalogue and the signature file is stored in the signature catalogue.
Alternatively, the step 210 is also included according to OpenXML standards to the file publishing, to the XBRL examples
Document and the attribute information file are digitally signed, and generate digital signature file;The encapsulation catalogue is also comprising signature mesh
Record, the signature catalogue is next layer of catalogue of the root;It is described by the file for needing encapsulation and the generation
File storage also includes to the encapsulation catalogue and the signature file is stored in the signature catalogue.
Further, the data check in the step 300 also includes digital signature verification, and it is according to OpenXML
Standard is verified to the signature file.
In a better embodiment of the present invention, the method for packing of XBRL instance documents of the present invention has been used to bag
Needs containing several XBRL instance documents, criteria for classification, picture category resource file, text class resource file and index template
The file of encapsulation is encapsulated, including step:Prepare the file for needing encapsulation, including above-mentioned XBRL instance documents, contingency table
Standard, picture category resource file, text class resource file and index template;Generate the file publishing of each XBRL instance document;It is right
Each XBRL instance document carries out information extraction, generates attribute information file;To each XBRL instance documents, criteria for classification, figure
The file publishing of piece class resource file, text class resource file, index template and generation is digitally signed, and generates signature text
Part;The relation of the file for all preparing and the file of generation is indexed, production Methods index file;To the text for all preparing
The type of part and the file for generating is indexed, and generates types index file;Encapsulation catalogue is generated, it includes root, example
File catalogue, attribute information catalogue, relation index list, criteria for classification catalogue, template directory, issue catalogue, Resource TOC, figure
Piece Resource TOC and textual resources catalogue, wherein instance document catalogue, attribute information catalogue, relation index list, template directory,
Issue catalogue and Resource TOC are next layer of catalogues of root, and criteria for classification catalogue is next layer of mesh of instance document catalogue
Record, picture resource catalogue and textual resources catalogue are next layer of catalogues of Resource TOC;Each XBRL instance document is stored in
In instance document catalogue, criteria for classification is stored in criteria for classification catalogue, picture category resource file is stored in into picture resource
In catalogue, text class resource file is stored in textual resources catalogue, index template is stored in template directory, will be issued
File is stored in issue catalogue, signature file is stored in signature catalogue, attribute information file is stored in into attribute information
In catalogue, relation index file is stored in relation index list and types index file is stored in root, used
ZIP forms are compressed, and obtain package file;Package file is carried out to include CRC check, relation index-check, types index
Verification and the data check of digital signature verification.
As can be seen that the method for packing of the XBRL instance documents of the present invention generates text by the file for encapsulating as needed
Part simultaneously generates the encapsulation catalogue of sandwich construction, and will need encapsulation file and the file that generates be respectively stored into it is corresponding each
Catalogue, realizes structuring, encapsulates XBRL instance documents and its relevant information to standardization.Thus the present invention has unified XBRL realities
The electronic institutional framework and form of example text shelves and relevant information, there is provided deeply using the relevant information of XBRL instance documents,
The integrality and uniformity of XBRL instance documents and relevant information is ensure that, the encapsulation of logical file is realized, portion has been reached
The purpose of many parts of logic transmission is realized in physics transmission, has widened the application of XBRL instance documents, reduces XBRL examples text
The complexity of shelves application, improves the application efficiency and effect of XBRL instance documents, so as to further increase the China Securities phase
Application efficiency and effect that goods industry digitized information is disclosed.
The technique effect of the design, concrete structure and generation of the present invention is described further below with reference to accompanying drawing, with
It is fully understood from the purpose of the present invention, feature and effect.
Description of the drawings
Fig. 1 is the flow chart of the method for packing of the XBRL instance documents of the present invention.
Fig. 2 is in one embodiment, using file of the method for packing of XBRL instance documents of the present invention to needs encapsulation
The configuration diagram of the file of encapsulation is needed during being packaged.
Specific embodiment
Illustrate how using the method for packing of the XBRL instance documents of the present invention to needing envelope below by way of one embodiment
The file of dress is packaged, as shown in figure 1, specific encapsulation process is as follows:
Step 100, prepares the file for needing encapsulation.
In this step, the file for needing encapsulation includes one or more XBRL instance documents, and it includes at least an XBRL
Instance document, can also be comprising other documents, the such as each self-corresponding index template text of one or more XBRL instance documents
Part, each self-corresponding criteria for classification file of one or more XBRL instance documents and/or one or more XBRL examples texts
The each self-corresponding resource file of shelves.Wherein, resource file can be picture category resource file, audio class resource file, video class
In resource file, script type resource file, text class resource file, binary class resource file and package file class resource file
One or more, resource file can also include other classifications resource file.
As shown in Fig. 2 the file 1 of the needs encapsulation in the present embodiment include two XBRL instance documents 101 and 102,
The corresponding criteria for classification file 201 of XBRL instance documents 101, the corresponding picture category resource file 301 of XBRL instance documents 101,
XBRL instance documents 101 it is corresponding index template file 501, the corresponding criteria for classification file 202 of XBRL instance documents 102,
The corresponding picture category resource file 302 of XBRL instance documents 102, the corresponding text class resource file 302 of XBRL instance documents 102
Index template file 502 corresponding with XBRL instance documents 102.
Step 200, generates file, generates encapsulation catalogue, it would be desirable to which the file of encapsulation and the file storage of generation are to encapsulation
Catalogue simultaneously is compressed to obtain package file.
Wherein, generate file be according to need encapsulation file, at least generate attribute information file, relation index file and
Types index file;It is, according to the file for needing encapsulation, at least to generate root and instance document catalogue, category to generate encapsulation catalogue
Property message catalog and relation index list, under instance document catalogue, attribute information catalogue and relation index list root
One layer of catalogue;The file for needing encapsulation and the file storage for generating are included at least the storage of types index file to encapsulation catalogue
It is stored in relation index list in root, by relation index file, XBRL instance documents is stored in into instance document mesh
In record and attribute information file is stored in attribute information catalogue.
Can as needed convention and rule of the application of the content and type and this technology of package file etc. because
Element, carries out calculating the structure of encapsulation catalogue.Therefore, encapsulating catalogue both can disposably generate in advance, then again to each
Catalogue memory storage file(This is to compare intuitively way, is used for people and makes package file by hand);Can also be according to encapsulation text
The number of part content, encapsulates, while generating corresponding catalogue(It is used for programming automation and makes package file).That is this step
In rapid, file generated, generate encapsulation catalogue and the file of encapsulation and the file of generation will be needed to store holding to encapsulation catalogue
Going sequentially can be:Generation file is first carried out, then performs generation encapsulation catalogue, performing then will need file and the generation of encapsulation
File storage to encapsulation catalogue;The execution sequence can also be:Generation encapsulation catalogue is first carried out, then performs generation file, after
And perform the file for needing encapsulation and the file storage for generating to encapsulation catalogue;The execution sequence can also be:Perform simultaneously
File is generated, encapsulation catalogue is generated and the file storage of the file and generation for encapsulating will be needed to encapsulation catalogue.
In the present embodiment, use and first carry out generation file, then perform generation encapsulation catalogue, performing then will need envelope
The execution sequence of encapsulation catalogue is arrived in the file of dress and the file storage for generating.
Generate file include step 210,220 and 230.
Step 210, at least generates attribute information file.
The content of attribute information file is whole package file(Envelope is completed to the file for needing encapsulation and the file for generating
The file obtained after dress)Attribute information, it meets " 11.1Core in OpenXML standards ECMA-376PART2-2011
The definition of Properties Part ", is divided into general information, version information and the class of status information three.Referring to table one, which show
The explanation of attribute information.
The attribute information of table one illustrates table
Property Name |
Property element |
Attribute type |
Mark |
dc:identifier |
General information |
Theme |
dc:subject |
General information |
Title |
dc:title |
General information |
Classification |
category |
General information |
Founder |
dc:creator |
General information |
Keyword |
keywords |
General information |
Language |
dc:language |
General information |
The last time-write interval |
lastPrinted |
General information |
Version |
version |
Version information |
Creation time |
dcterms:created |
Version information |
Finally revise the time |
dcterms:modified |
Version information |
Last reviser |
lastModifiedBy |
Version information |
Revision number of times |
revision |
Version information |
Content is described |
dc:description |
Version information |
State |
contentStatus |
Status information |
Attribute information file is single XML file, and file name is usually " core.xml ".OpenXML(OfficeOpen
XML)It is the internationalization open standard for word processing document, PowerPoint and electrical form developed by Microsoft,
Ecma-376 international standards are standardized as by Ecma, are ISO/IEC29500 international standards by ISO and IEC normalization.
In this step, before attribute information file is generated, each XBRL in the file for needing encapsulation can also be generated
The layout files and file publishing of instance document.Wherein the content of layout files is the corresponding format letter of the XBRL instance documents
Breath, XBRL instance documents are corresponding releases news for this for the content of file publishing.
In the present embodiment, as shown in Fig. 2 generating the corresponding file publishing 601 of XBRL instance documents 101 and XBRL realities
The corresponding file publishing 602 of example text shelves 102.
Generating attribute information file includes that entering row information to XBRL instance documents and file publishing according to OpenXML standards carries
Take, automatically generate by staff's input and by software.For example, the letter such as attribute " theme ", " title ", " classification " in table one
Breath can be by carrying out information extraction acquisition to XBRL instance documents and file publishing, and its form meets OpenXML standards;Attribute
" founder ", " keyword ", " language ", " last time-write interval ", " version ", " last reviser ", " content description ", " state "
Can be obtained by staff's input etc. information, its form is according to OpenXML standards;Attribute " mark ", " creation time ",
The information such as " finally revising the time ", " revision number of times " can be automatically generated by software, and its form meets OpenXML standards.
Therefore in the present embodiment, according to OpenXML standards to XBRL instance documents 101 and 102 and file publishing 601
Information extraction is carried out with 602, attribute information file 702 is generated.
In this step, after attribute information file is generated, can be with the file according to OpenXML standards to needs encapsulation
The file for generating before is digitally signed, and generates digital signature file.Wherein the content of digital signature file is XBRL realities
Example text shelves or the corresponding signing messages of other files, meet " 13.Digital in OpenXML standards ECMA-376PART2-2011
The definition of Signatures ", it is one or more XML files, and file suffixes is " .xml ".In order to ensure XBRL instance documents
And the uniformity and non repudiation of relevant information, content interpolation-preventing can be realized by modes such as digital signature, accumulation signatures.
In the present embodiment, as shown in Fig. 2 generating XBRL instance documents 101 and 102, the and of criteria for classification file 201
202nd, picture category resource file 301 and 302, text class resource file 402, index template file 501 and 502, file publishing 601
With 602 and the digital signature file 704 of attribute information file 702.
Step 220, production Methods index file.
The content of relation index file is the relation index of whole package file, meets OpenXML standards ECMA-
The definition of " 9.3Relationships " in 376PART2-2011.It is one or more XML files, and file suffixes is " ._
rels”。
Production Methods index file includes the text that the file encapsulated to needs according to OpenXML standards and step 210 are generated
The relation of part is indexed.In the present embodiment, according to OpenXML standards to XBRL instance documents 101 and 102, criteria for classification
File 201 and 202, picture category resource file 301 and 302, text class resource file 402, index template file 501 and 502, send out
The relation of cloth file 601 and 602, attribute information file 702 and digital signature file 704 is indexed, production Methods index
File 703.
Step 230, generates types index file.
The content of types index file is the types index of whole package file, meets OpenXML standards ECMA-
The definition of " 10.1.2Mapping Content Types " in 376PART2-2011.It is single XML file, and file name is
“[Content_Types].xml”。
Generate file and step 210 and step that types index file includes needs being encapsulated according to OpenXML standards
The type of 220 files for generating is indexed.In the present embodiment, according to OpenXML standards to the He of XBRL instance documents 101
102nd, criteria for classification file 201 and 202, picture category resource file 301 and 302, text class resource file 402, index template text
Part 501 and 502, file publishing 601 and 602, attribute information file 702, relation index file 703 and digital signature file
704 type is indexed, and generates types index file 701.
Step 240, generates encapsulation catalogue, and storage file is to encapsulation catalogue and compresses, and obtains package file.
In this step, the file for encapsulating as needed and the file for generating in step before, generate and have multi-level mesh
The encapsulation catalogue of directory structures.Specifically, catalogue is encapsulated comprising root and instance document catalogue, attribute information catalogue and relation rope
Draw catalogue, wherein instance document catalogue, attribute information catalogue and relation index list is next layer of catalogue of root.Root
For storage class index file, instance document catalogue is used to store XBRL instance documents, and attribute information catalogue is used to store category
Property message file, relation index list be used for store relation index file.
In addition, as needed, next layer of catalogue of root can also include template directory, criteria for classification catalogue, resource
One or more in catalogue, format catalogue, issue catalogue and signature catalogue.Instance document catalogue can also have next layer of mesh
Record:Criteria for classification catalogue.Resource TOC can also have next layer of catalogue:Picture resource catalogue, audio resource catalogue, video money
One or many in source directory, script Resource TOC, textual resources catalogue, Binary Resources catalogue and package file Resource TOC
It is individual.Criteria for classification catalogue is used to store criteria for classification file, and picture resource catalogue is used to store picture category resource file, audio frequency money
Source directory is used to store audio class resource file, and video resource catalogue is used to store video class resource file, script Resource TOC
For storing script type resource file, textual resources catalogue is used to store text class resource file, and Binary Resources catalogue is used for
Storage binary class resource file, package file Resource TOC is used for storage enclosure files classes resource file.
In the present embodiment, as shown in Fig. 2 the encapsulation catalogue for generating includes root 20, instance document catalogue 21, attribute
Message catalog 22, relation index list 23, signature catalogue 24, Resource TOC 25, template directory 26, issue catalogue 27, contingency table
Quasi- catalogue 211, picture resource catalogue 251 and textual resources catalogue 252, wherein, instance document catalogue 21, attribute information catalogue
22nd, under relation index list 23, signature catalogue 24, Resource TOC 25, template directory 26 and the issue root 20 of catalogue 27
One layer of catalogue, criteria for classification catalogue 211 is next layer of catalogue of instance document catalogue 21, and picture resource catalogue 251 and text are provided
Source directory 252 is next layer of catalogue of Resource TOC 25.
Correspondingly, types index file 701 is stored in root 20, the storage of XBRL instance documents 101 and 102 is arrived
In instance document catalogue 21, by the storage of criteria for classification file 201 and 202 in criteria for classification catalogue 211, by attribute information file
702 storages store relation index file 703 in relation index list 23, by digital signature in attribute information catalogue 22
The storage of file 704 arrives the storage of picture category resource file 301 and 302 in picture resource catalogue 251 in signature catalogue 24, will
The index storage of template file 501 and 502 is arrived template directory 26 by the storage of text class Resource TOC in textual resources catalogue 252
It is interior, by the storage of file publishing 601 and 602 to issue catalogue 27.
All Files storage is compressed to after encapsulating in catalogue to it, package file 2 is obtained, compression adopts ZIP lattice
Formula.ZIP forms are the file formats of a kind of popular data compression and document storage, and suffix name " .zip " is usually used, its
MIME forms are application/zip.
Step 300, to package file data check is carried out.
In this step, data check is carried out to the package file 2 that step 200 is obtained, data check includes CRC check, closes
It is index-check and types index verification.
Wherein, CRC(Cyclic Redundancy Check, CRC)Verification is a kind of data verification method,
Data are carried out with polynomial computation, and the result for obtaining is attached to behind initial data, Data receiver also performs similar calculation
Method, to ensure the correctness and integrality of data itself.It is verified, to test according to ZIP format specifications to package file 2
The correctness and integrality of the data of card package file 2.
Relation index-check is verified, to verify package file 2 according to OpenXML standards to relation index file 703
Whole relation index informations correctness and integrality.Types index verification foundation OpenXML standards, to types index file
701 are verified, to verify the correctness and integrality of all types index information of package file 2.According further to needs, number
Also include digital signature verification according to verification, digital signature file 704 can be verified, to verify the whole of package file 2
The correctness and integrality of digital signature information.
Two preferred embodiments of the present invention described in detail above.It should be appreciated that the ordinary skill people of this area
Member just can make many modifications and variations without the need for creative work with design of the invention.Therefore, all the art
Technical staff can be obtained by logical analysis, reasoning, or a limited experiment on the basis of existing technology under this invention's idea
The technical scheme for arriving, all should be in the protection domain being defined in the patent claims.