CN103885925B - Method for encapsulating XBRL (extensible business reporting language) instance documents - Google Patents

Method for encapsulating XBRL (extensible business reporting language) instance documents Download PDF

Info

Publication number
CN103885925B
CN103885925B CN201310104969.9A CN201310104969A CN103885925B CN 103885925 B CN103885925 B CN 103885925B CN 201310104969 A CN201310104969 A CN 201310104969A CN 103885925 B CN103885925 B CN 103885925B
Authority
CN
China
Prior art keywords
file
catalogue
encapsulation
resource
generation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310104969.9A
Other languages
Chinese (zh)
Other versions
CN103885925A (en
Inventor
张野
于文强
陈功
赵伟
周晓明
初壮
罗黎明
张兴东
丁韬
冯晋雯
贾霄鹏
刘世平
李海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Certification Information Technology Service Co., Ltd.
INFORMATION CENTER OF CHINA SECURITIES REGULATORY COMMISSION
Original Assignee
China Certification Information Technology Service Co Ltd
Information Center Of China Securities Regulatory Commission
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Certification Information Technology Service Co Ltd, Information Center Of China Securities Regulatory Commission filed Critical China Certification Information Technology Service Co Ltd
Priority to CN201310104969.9A priority Critical patent/CN103885925B/en
Publication of CN103885925A publication Critical patent/CN103885925A/en
Priority to HK14112905.3A priority patent/HK1199949A1/en
Application granted granted Critical
Publication of CN103885925B publication Critical patent/CN103885925B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for encapsulating XBRL (extensible business reporting language) instance documents. The method includes preparing a required-to-be-encapsulated files; at least generating attribute information files, relation index files and type index files; generating encapsulation directories; storing the required-to-be-encapsulated files and the generated files in the various corresponding directories and compressing the files to obtain encapsulated files; verifying data of the encapsulated files. Each required-to-be-encapsulated file contains at least one XBRL instance document. Each encapsulation directory at least contains a root directory, an instance document directory, an attribute information directory and a relation index directory. The method has the advantages that the encapsulation directories which are of multilayer structures are generated, the various files are respectively stored in the various corresponding directories, accordingly, the XBRL instance documents and relevant information of the XBRL instance documents can be structurally encapsulated in a standardized manner, and electronic organizational structures and forms of the XBRL instance documents and the relevant information can be unified.

Description

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.

Claims (21)

1. a kind of method for packing of XBRL instance documents, it is characterised in that include:
Step (100), the file for preparing needs encapsulation, the file of the needs encapsulation includes at least an XBRL instance document;
Step (200), generation file, generate encapsulation catalogue, and the file for needing encapsulation and the file of the generation are stored Encapsulate catalogue and be compressed to obtain package file to described;
Wherein, the file that generates is, according to the file for needing and encapsulating, at least to generate attribute information file, relation index text Part and types index file;The encapsulation catalogue that generates is, according to the file for needing and encapsulating, at least to generate root and reality Example file catalogue, attribute information catalogue and relation index list, the instance document catalogue, the attribute information catalogue and described Relation index list is next layer of catalogue of the root;The file that the needs are encapsulated and the file of the generation The encapsulation catalogue is stored including at least the types index file is stored in the root, by relation index File is stored in the relation index list, the XBRL instance documents is stored in the instance document catalogue and is incited somebody to action The attribute information file is stored in the attribute information catalogue.
2. the method for packing of XBRL instance documents as claimed in claim 1, wherein the generation text in the step (200) Part, generation encapsulation catalogue and described store the file for needing encapsulation and the file of the generation arrive the encapsulation The execution sequence of catalogue includes:
The generation file is first carried out, then performs described generation and encapsulate catalogue, performed then described by the text for needing and encapsulating Part and the storage of the file of the generation are to the encapsulation catalogue;
First carry out described generation and encapsulate catalogue, then perform the generation file, perform then described by the text for needing and encapsulating Part and the storage of the file of the generation are to the encapsulation catalogue;
The generation file, generation encapsulation catalogue and the file for encapsulating the needs and the life are performed simultaneously Into file storage to the encapsulation catalogue.
3. the method for packing of XBRL instance documents as claimed in claim 1 or 2, wherein the generation file 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 marks The relation of the accurate file 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 described The file and the step (210) of encapsulation and the type of the file of the step (220) generation is needed to be indexed.
4. the method for packing of XBRL instance documents as claimed in claim 3, wherein the compression adopts ZIP forms.
5. the method for packing of XBRL instance documents as claimed in claim 4, wherein also including:
Step (300), data check is carried out to the package file.
6. the method for packing of XBRL instance documents as claimed in claim 5, wherein the data school in the step (300) Test including the verification of CRC check, relation index-check and types index;
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.
7. the method for packing of the XBRL instance documents as described in claim 4,5 or 6, wherein described need the file of encapsulation also to wrap Containing the corresponding index template file of the XBRL instance documents;The encapsulation catalogue also includes template directory, the template directory It 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 envelope Dress catalogue also includes and the index template file is stored in the template directory.
8. the method for packing of XBRL instance documents as claimed in claim 7, wherein described need the file of encapsulation also to include institute State the corresponding criteria for classification file of XBRL instance documents;The encapsulation catalogue also includes criteria for classification catalogue, the criteria for classification Catalogue is next layer of catalogue of the instance document catalogue;It is described to need the file of encapsulation and the file of the generation to deposit by described The encapsulation catalogue is stored up also comprising the criteria for classification file is stored in the criteria for classification catalogue.
9. the method for packing of XBRL instance documents as claimed in claim 8, wherein described in the step (100) needs envelope The file of dress also includes the corresponding resource file of the XBRL instance documents;The encapsulation catalogue also includes Resource TOC, described Resource TOC is next layer of catalogue of the root;It is described to store the file for needing encapsulation and the file of the generation Also include to the encapsulation catalogue and the resource file is stored in the Resource TOC.
10. the method for packing of XBRL instance documents as claimed in claim 9, wherein the resource bundle resource containing picture category File, audio class resource file, video class resource file, script type resource file, text class resource file, binary class resource One or more in file and package file class resource file;
The encapsulation catalogue also includes picture resource catalogue, audio resource catalogue, video resource catalogue, script Resource TOC, text This Resource TOC, Binary Resources catalogue and package file Resource TOC, the picture resource catalogue, the audio resource mesh Record, the video resource catalogue, the script Resource TOC, the textual resources catalogue, the Binary Resources catalogue and institute State the next layer of catalogue that 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.
The method for packing of 11. XBRL instance documents as claimed in claim 6, wherein the step (210) is also right comprising generating Answer the layout files of the XBRL instance documents;The encapsulation catalogue also includes format catalogue, and the format catalogue is described Next layer of catalogue of catalogue;It is described that the file for needing encapsulation and the storage of the file of the generation are encapsulated into catalogue also to described Comprising step:The layout files is stored in the format catalogue.
The method for packing of 12. XBRL instance documents as claimed in claim 11, wherein the layout files includes XSLT forms The layout files of conversion and/or the layout files of CSS style sheet.
The method for packing of 13. XBRL instance documents as claimed in claim 6, wherein the step (210) is also right comprising generating Answer the file publishing of the XBRL instance documents;Also comprising catalogue is issued, the issue catalogue is described to the encapsulation catalogue Next layer of catalogue of catalogue;It is described that the file for needing encapsulation and the storage of the file of the generation are encapsulated into catalogue also to described Described issue in catalogue is stored in comprising by the file publishing;The generation attribute information in the step (210) File also includes carrying out information extraction to the file publishing according to OpenXML standards.
The method for packing of 14. XBRL instance documents as claimed in claim 13, wherein the form of the file publishing includes PDF, HTML, RTF and/or Office Open XML.
The method for packing of 15. XBRL instance documents as claimed in claim 6, wherein the step (210) also includes foundation OpenXML standards are digitally signed to the XBRL instance documents and the attribute information file, generate 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 by the need The file and the file storage of the generation to be encapsulated is described also comprising the signature file is stored in the encapsulation catalogue In signature catalogue.
The method for packing of 16. XBRL instance documents as claimed in claim 7, wherein the step (210) also includes foundation OpenXML standards carry out digital label to the index template file, to the XBRL instance documents and the attribute information file Name, generates digital signature file;The encapsulation catalogue also includes signature catalogue, and the signature catalogue is the next of the root Layer catalogue;The file storage by the file of the needs encapsulation and the generation is also included to the encapsulation catalogue will be described Signature file is stored in the signature catalogue.
The method for packing of 17. XBRL instance documents as claimed in claim 8, wherein the step (210) also includes foundation OpenXML standards carry out digital label to the criteria for classification file, to the XBRL instance documents and the attribute information file Name, generates digital signature file;The encapsulation catalogue also includes signature catalogue, and the signature catalogue is the next of the root Layer catalogue;The file storage by the file of the needs encapsulation and the generation is also included to the encapsulation catalogue will be described Signature file is stored in the signature catalogue.
The method for packing of 18. XBRL instance documents as claimed in claim 10, wherein the step (210) also includes foundation OpenXML standards are digitally signed to the resource file, to the XBRL instance documents and the attribute information file, raw Into digital signature file;The encapsulation catalogue also includes signature catalogue, and the signature catalogue is next layer of mesh of the root 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 signature File is stored in the signature catalogue.
The method for packing of 19. XBRL instance documents as claimed in claim 11, wherein the step (210) also includes foundation OpenXML standards are digitally signed to the layout files, to the XBRL instance documents and the attribute information file, raw Into digital signature file;The encapsulation catalogue also includes signature catalogue, and the signature catalogue is next layer of mesh of the root 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 signature File is stored in the signature catalogue.
The method for packing of 20. XBRL instance documents as claimed in claim 13, wherein the step (210) also includes foundation OpenXML standards are digitally signed to the file publishing, to the XBRL instance documents and the attribute information file, raw Into digital signature file;The encapsulation catalogue also includes signature catalogue, and the signature catalogue is next layer of mesh of the root 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 signature File is stored in the signature catalogue.
The method for packing of the 21. XBRL instance documents as described in claim 15 or 19 or 20, wherein in the step (300) The data check also includes digital signature verification, and it is verified according to OpenXML standards to the signature file.
CN201310104969.9A 2013-03-28 2013-03-28 Method for encapsulating XBRL (extensible business reporting language) instance documents Active CN103885925B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310104969.9A CN103885925B (en) 2013-03-28 2013-03-28 Method for encapsulating XBRL (extensible business reporting language) instance documents
HK14112905.3A HK1199949A1 (en) 2013-03-28 2014-12-24 Method for encapsulating xbrl (extensible business reporting language) instance documents xbrl

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310104969.9A CN103885925B (en) 2013-03-28 2013-03-28 Method for encapsulating XBRL (extensible business reporting language) instance documents

Publications (2)

Publication Number Publication Date
CN103885925A CN103885925A (en) 2014-06-25
CN103885925B true CN103885925B (en) 2017-04-26

Family

ID=50954821

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310104969.9A Active CN103885925B (en) 2013-03-28 2013-03-28 Method for encapsulating XBRL (extensible business reporting language) instance documents

Country Status (2)

Country Link
CN (1) CN103885925B (en)
HK (1) HK1199949A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608063B (en) * 2014-11-14 2018-07-27 金蝶软件(中国)有限公司 XBRL instance documents method of calibration and system
CN105589897B (en) * 2014-11-17 2018-12-21 金蝶软件(中国)有限公司 Report methods of exhibiting and system based on XBRL
CN104850580B (en) * 2015-04-07 2018-01-12 浙江工业大学 A kind of method of mark and retrieval teaching resource on the internet
CN105260298A (en) * 2015-09-17 2016-01-20 四川长虹电器股份有限公司 XBRL classification standard verification method based on FRTA verification platform
CN105224513B (en) * 2015-09-24 2018-06-05 四川长虹电器股份有限公司 A kind of method that context is intelligently generated based on XBRL instance documents
CN105159684B (en) * 2015-09-24 2019-01-25 四川长虹电器股份有限公司 A kind of reusable system for XBRL business processing
CN105354181A (en) * 2015-09-24 2016-02-24 四川长虹电器股份有限公司 XBRL document checking and error correction positioning method
CN109669684A (en) * 2018-12-29 2019-04-23 深圳点猫科技有限公司 For implementation method and device built in the technical documentation of Python editing machine
CN110795392B (en) * 2019-10-29 2022-04-19 北京四方启点科技有限公司 Packaging method of accounting electronic voucher and electronic equipment
CN111767254B (en) * 2020-07-07 2021-01-05 江苏中威科技软件系统有限公司 Multi-file reading device and method based on format data stream file technology
CN116701325B (en) * 2023-08-03 2023-10-31 吉贝克信息技术(北京)有限公司 Binary file cache-based XBRL classification standard loading method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1392986A (en) * 2000-01-31 2003-01-22 Xml都市公司 Method and apparatus for generating documents for various presentations
KR20070040735A (en) * 2005-10-12 2007-04-17 주식회사 더존다스 Preparing method for reporting form using extensible business reporting language, and preparing and modifying method of enterprise information report using the reporting form
CN101201815A (en) * 2006-12-13 2008-06-18 鸿富锦精密工业(深圳)有限公司 System and method for generating patent application file
CN102360381A (en) * 2011-09-29 2012-02-22 深圳众为兴技术股份有限公司 Device and method for performing lossless compression on embedded program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7415482B2 (en) * 2005-02-11 2008-08-19 Rivet Software, Inc. XBRL enabler for business documents

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1392986A (en) * 2000-01-31 2003-01-22 Xml都市公司 Method and apparatus for generating documents for various presentations
KR20070040735A (en) * 2005-10-12 2007-04-17 주식회사 더존다스 Preparing method for reporting form using extensible business reporting language, and preparing and modifying method of enterprise information report using the reporting form
CN101201815A (en) * 2006-12-13 2008-06-18 鸿富锦精密工业(深圳)有限公司 System and method for generating patent application file
CN102360381A (en) * 2011-09-29 2012-02-22 深圳众为兴技术股份有限公司 Device and method for performing lossless compression on embedded program

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于XBRL技术的《上市公司信息披露电子化规范》;俞志钢 等;《计算机应用系统》;20070731(第7期);124-128 *

Also Published As

Publication number Publication date
CN103885925A (en) 2014-06-25
HK1199949A1 (en) 2015-07-24

Similar Documents

Publication Publication Date Title
CN103885925B (en) Method for encapsulating XBRL (extensible business reporting language) instance documents
US7320003B2 (en) Method and system for storing and retrieving document data using a markup language string and a serialized string
CN107885499A (en) A kind of interface document generation method and terminal device
JP4997777B2 (en) Method and system for reducing delimiters
US20030018661A1 (en) XML smart mapping system and method
US20080002218A1 (en) Method and system for an xml-driven document conversion service
US20080255997A1 (en) Enterprise integrated business process schema
US8782597B2 (en) Ontology updating apparatus, method and system
CN101772760B (en) Database management program and database management device
EP1605374A1 (en) Techniques for serializing events
US8140347B2 (en) System and method for speeding XML construction for a business transaction using prebuilt XML with static and dynamic sections
CN110020358B (en) Method and device for generating dynamic page
CA2759618A1 (en) System and method for processing xml documents
US8612489B2 (en) LossLess transformation of XBRL instance to XML data model instance
CN110737630A (en) Method and device for processing electronic archive file, computer equipment and storage medium
JP2006221653A (en) System and method for determining acceptance state in document analysis
JP5044943B2 (en) Method and system for high-speed encoding of data documents
US20110238633A1 (en) Electronic file comparator
US7475090B2 (en) Method and apparatus for moving data from an extensible markup language format to normalized format
JP2013008395A (en) Display system and method for acceptance state
CN101799890B (en) Certificate data processing method and system
JP2006221652A (en) Encoded document decoding method and system
CN110020413B (en) Method and device for detecting IMIX message and electronic equipment
CN106951399B (en) Method and device for quickly generating ONIX standard file
CN111143310A (en) Log recording method and device and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1199949

Country of ref document: HK

C41 Transfer of patent application or patent right or utility model
CB03 Change of inventor or designer information

Inventor after: Zhang Ye

Inventor after: Feng Jinwen

Inventor after: Jia Xiaopeng

Inventor after: Liu Shiping

Inventor after: Li Hai

Inventor after: Yu Wenqiang

Inventor after: Chen Gong

Inventor after: Zhao Wei

Inventor after: Zhou Xiaoming

Inventor after: Chu Zhuang

Inventor after: Luo Liming

Inventor after: Zhang Xingdong

Inventor after: Ding Tao

Inventor before: Zhang Ye

Inventor before: Li Hai

Inventor before: Zhou Xiaoming

Inventor before: Zhang Xingdong

Inventor before: Jia Xiaopeng

Inventor before: Chu Zhuang

Inventor before: Chen Gong

Inventor before: Ding Tao

Inventor before: Zhao Wei

Inventor before: Liu Shiping

Inventor before: Luo Liming

COR Change of bibliographic data
TA01 Transfer of patent application right

Effective date of registration: 20151126

Address after: 100033 Beijing City Finance Street Xicheng District 19 Fukai building A block 10 layer

Applicant after: INFORMATION CENTER OF CHINA SECURITIES REGULATORY COMMISSION

Applicant after: China Certification Information Technology Service Co., Ltd.

Address before: 100033 Beijing City Finance Street Xicheng District 19 Fukai building A block 10 layer

Applicant before: INFORMATION CENTER OF CHINA SECURITIES REGULATORY COMMISSION

GR01 Patent grant
GR01 Patent grant
REG Reference to a national code

Ref country code: HK

Ref legal event code: GR

Ref document number: 1199949

Country of ref document: HK