CN100559369C - Satisfy the document recording method of format and content separation and mixing demand simultaneously - Google Patents

Satisfy the document recording method of format and content separation and mixing demand simultaneously Download PDF

Info

Publication number
CN100559369C
CN100559369C CNB2004100309971A CN200410030997A CN100559369C CN 100559369 C CN100559369 C CN 100559369C CN B2004100309971 A CNB2004100309971 A CN B2004100309971A CN 200410030997 A CN200410030997 A CN 200410030997A CN 100559369 C CN100559369 C CN 100559369C
Authority
CN
China
Prior art keywords
description
format
content
document
mixing
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.)
Expired - Lifetime
Application number
CNB2004100309971A
Other languages
Chinese (zh)
Other versions
CN1680933A (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 ELECTRONIC TECHNOLOGY STANDARDIZATION INST
Original Assignee
CHINA ELECTRONIC TECHNOLOGY STANDARDIZATION INST
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 ELECTRONIC TECHNOLOGY STANDARDIZATION INST filed Critical CHINA ELECTRONIC TECHNOLOGY STANDARDIZATION INST
Priority to CNB2004100309971A priority Critical patent/CN100559369C/en
Publication of CN1680933A publication Critical patent/CN1680933A/en
Application granted granted Critical
Publication of CN100559369C publication Critical patent/CN100559369C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The present invention relates to satisfy simultaneously the document recording method of format and content separation and mixing demand, be included in the format description and the content description of external memory generation document, and set up the mapping relations of format description and content description, format description and content description and mapping relations are between the two deposited in the file system of external memory; Judge whether to carry out the mixing editor, then loading content corresponding according to mapping relations if desired describes and format description, in internal memory, set up the map of format description and content description and related, document is carried out mixing, and the document of mixing is edited; If do not need the mixing editor, then extract content description or format description as required separately, and format description or content description are handled respectively.The present invention both satisfied the editing machine content of What You See Is What You Get style and the requirement of form mixing, satisfied form separates application with content needs again.

Description

Satisfy the document recording method of format and content separation and mixing demand simultaneously
Technical field
The present invention relates to a kind of describing method of document record format, especially a kind of document recording method of satisfying format and content separation and mixing demand simultaneously, be applicable to the documents editing of supporting extensible markup language (XML) and handling implement writes down hereof or read in the content of document and manifest form from file, belong to the computer office technical field of automation.
Background technology
For a long time, document mainly adopts special-purpose record format to describe, adopt professional format to bring inevitable serious compatibility issue, for example, the WPS document editor is difficult to the DOC form that correct interpretation Word adopts, the PowerPointer of current use can not the correct interpretation early version the PPT form, or the like; Simultaneously, the processing power of document also can be subjected to the document process instrument that the restriction of manufacturer is provided.In recent years, along with the rise that extensible markup language XML uses, the record format of document adopts XML to describe more and more.For example, the office software OpenOffice of Oasis, office software Office2003 of Microsoft or the like.Adopt XML to describe document, can come the record format of specification document, and it is verified, and strengthen the exchange capacity of document format greatly by definition outline (schema).XML has also impelled document to manifest separating of form and content, help the document logic content information that keeps relative stability this separate on the one hand, make the influence of its style of not set type, various application also definable come standard how to describe the logic content of document with the outline that the field is relevant separately, and integrated with other application system.Also make the document of same type on the other hand, only needing once to set type obtains style single (stylesheet) and just can have the consistent form that manifests, and does not need every piece of document is set type.Yet, as the document record format that the documents editing instrument uses, on the one hand, support the close friend's of What You See Is What You Get edit style as far as possible, this requires form and content mix layout; On the other hand, preferably can also the supporting documentation form and the separating of content, the two itself is contradictory.Disclosed document record format in the prior art, generally be by the definition outline relevant, support the document that mixes to manifest form and content information, can not support above-mentioned two kinds of demands well simultaneously with editing and processing, purposes is single, is difficult to other application system integrated.
Summary of the invention
For overcoming above-mentioned deficiency, the purpose of this invention is to provide a kind of document recording method of satisfying format and content separation and mixing demand simultaneously, format and content is described separately, coexists as in the log file, and application program is carried out separately or hybrid processing format and content as required.
For achieving the above object, the technical scheme that the present invention takes is: satisfy the document recording method of format and content separation and mixing demand simultaneously, document record format comprises format description and content description, comprises the steps:
A. generate the format description and the content description of document at external memory, and set up the mapping relations of format description and content description, format description and content description and mapping relations are between the two deposited in the file system of external memory;
B. judge whether to carry out the mixing editor, then load corresponding format description and content description if desired according to mapping relations, in internal memory, set up the map of format description and content description and related, document is carried out mixing, and the document of mixing is edited;
If c. do not need the mixing editor, then extract format description or content description as required separately, and format description or content description are edited or handled.
Format description and content description are the tree form data structure of extensible markup language form among the described step a, have different root nodes and different NameSpaces.
Format description among the described step a and content description are stored as file by compression or incompressible scale-of-two or plain text data.
Format description among the described step a and content description are arbitrary can be for empty or be empty simultaneously, and format description is not specified for empty expression document and manifested form, and content description represents not have the content that can Gong manifest for empty.
Mapping relations among the described step a are expressed by identifier, make between format description and the content description and set up corresponding relation.
Editing and processing among the described step b is meant modification format description and content description or safeguards the mapping relations that it is correct or respectively validation verification is carried out in format description and content description.
When the document to mixing among the described step b carried out editing and processing, the corresponding relation of format description and content description was dynamically produced by edit tool and safeguards.
The present invention compared with prior art has tangible advantage and useful effect.The present invention is divided into format description and content description two parts with document description, and the format information and the logic content information of document are described respectively, sets up both mapping relations, and is recorded in the identical file.Application program can be extracted respectively in needs, and the synchronous unanimity that keeps both, satisfied the requirement of the required format content mixing of the documents editing instrument of What You See Is What You Get style, simultaneously keep the advantage that form separates with content again, overcome the deficiency of existing document record format scheme.The present invention greatly facilitates the editor, processing of document and integrated with other application systems, has high generality, dirigibility and practicality.
Description of drawings
Fig. 1 is a main flow chart of the present invention;
The mapping relations synoptic diagram of the format description of Fig. 2 record format of the present invention and content description.
Embodiment
The present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
See also Fig. 1, main flow chart of the present invention at first generates the format description (FD) and the content description (CD) of document.FD and CD all adopt the XML grammer.Wherein FD manifests relevant with document, for example page layout, font, font size and color, line space etc., usually be also referred to as the XML example of document format, CD is relevant with the document logic content, as different levels structure of books, paper, letter etc., be also referred to as the XML example of user-defined contents usually.
Then, set up the mapping relations of format description and content description, and format description, content description and mapping relations are between the two deposited in the same external memory log file.
Format description of the present invention and content description mapping relations are a kind of corresponding relations of setting up between format description and the content description.Mapping relations are by identifier (ID) or other location mechanisms such as unified resource sign (URI) expression.For example, " title " part of content description is designated " 1 ", first row, first row that will manifest form and be form are designated the quoting of identifier " 1 ", and the mapping relations of then setting up are exactly " title division being presented among first row, first row of form ".
Format description and content description are the tree form data structure of extensible markup language (XML) form, have different root nodes and different NameSpaces.Format description and content description can be stored as file by compression or incompressible scale-of-two or plain text data.
Format description and content description can one of them be empty or simultaneously for empty, format description is not specified for empty expression document and manifested form, and content description does not have the content that can Gong manifest for empty expression.
A document editor is when opening file, read in format description and content description and mapping relations thereof, the document of display format content mix in the documents editing interface, and independence keeps the map data of format and content in internal memory, and in the dynamic editing process, safeguard association between the two.
A document editor can be introduced user definition outline (schema), and content description is carried out validation verification, introduces the document format outline validation verification is carried out in format description.
A disposal system relevant with document content for example, is won partial data in the document and is joined the program that other go in using, thereby can only transmit content description and need not transmit tediously long format description and reduce transmission cost.
A system that sets type as required may possess the style single (stylesheet) that is used to manifest document format, can ignore the format description of document, and only read the content description of document, thereby discharge required form.For example, for one piece of paper, the author may adopt text editor to go out to be used for the form of publishing separately, still, publishes if be placed in the collection of thesis, then need to set type by the unified style of collection of thesis, at this moment, can from the file that editing machine generates, extract the part of content description, and ignore the part of format description, single in conjunction with the style of collection of thesis then, arrange collection of thesis required manifest form.This shows that this mode can make a document present the different forms that manifests as required.
Embodiment: see also Fig. 2, the mapping relations synoptic diagram of the CD of record format of the present invention and FD, the particular content of embodiment sees also Fig. 2, the format description of one embodiment of the invention and content description.The embodiment of the invention is constituted, is met the file of document record format of the present invention by two XML example CD and FD.1-11 behavior CD, 13-41 behavior FD.
CD has described the logic content of a book of representing with the XML tree structure.Root node is book (Book) ", its child node comprises " title (Title) ", " author (Author) ", " Publication Year (Year) ", " book number (ISBN) ", " publisher (Publisher) ".Wherein each child node all has unique identifier (ID), and the ID of Title is 1, and the ID of Author is 2, and the ID of Year is 3, and the ID of ISBN is 4, and the ID of Publisher is 5.Wherein all elements all belong to NameSpace CD.
FD has described it and has manifested form, promptly by the form of form (Table), shows the content of book with the form of single file (row) five row (col).Wherein, the ID of text element quotes attribute (idref) and indicates that ID is 1 node among the corresponding CD of first row, be Title, ID is 2 node Author among the corresponding CD of secondary series, ID is 3 node Year among the corresponding CD of the 3rd row, ID is 4 node ISBN among the corresponding CD of the 4th row, and ID is 5 node Publisher among the corresponding CD of the 5th row.Wherein all elements all belong to NameSpace (namespace) FD.
By above-mentioned record format, set up CD to the association between two XML trees of FD.Fig. 2 left side is CD XML tree, and the right is FD XML tree, and the internodal dotted arrow of CD and FD is represented by ID and quoted the incidence relation of foundation.
It should be noted last that: above embodiment is the unrestricted technical scheme of the present invention in order to explanation only, although the present invention is had been described in detail with reference to the foregoing description, those of ordinary skill in the art is to be understood that: still can make amendment or be equal to replacement the present invention, for any modification or partial replacement that does not break away from the spirit and scope of the present invention, it all should be encompassed in the middle of the claim scope of the present invention.

Claims (7)

1. satisfy the document recording method of format and content separation and mixing demand simultaneously, document record format comprises format description and content description, it is characterized in that, comprises the steps:
A. generate the format description and the content description of document at external memory, and set up the mapping relations of format description and content description, format description and content description and mapping relations are between the two deposited in the file system of external memory;
B. judge whether to carry out the mixing editor, then load corresponding format description and content description if desired according to mapping relations, in internal memory, set up the map of format description and content description and related, document is carried out mixing, and the document of mixing is edited;
If c. do not need the mixing editor, then extract format description or content description as required separately, and format description or content description are edited or handled.
2. the document recording method of satisfying format and content separation and mixing demand simultaneously according to claim 1, it is characterized in that: format description and content description are the tree form data structure of extensible markup language form among the described step a, have different root nodes and different NameSpaces.
3. according to claim 1ly satisfy format and content simultaneously and separate document recording method with the mixing demand, it is characterized in that: format description among the described step a and content description are stored as file by compression or incompressible scale-of-two or plain text data.
4. the document recording method of satisfying format and content separation and mixing demand simultaneously according to claim 1, it is characterized in that: format description among the described step a and content description are arbitrary can be for sky or simultaneously for empty, format description is not specified for empty expression document and is manifested form, and content description does not have the content that can Gong manifest for empty expression.
5. the document recording method of satisfying format and content separation and mixing demand simultaneously according to claim 1, it is characterized in that: the mapping relations among the described step a are expressed by identifier, make between format description and the content description and set up corresponding relation.
6. the document recording method of satisfying format and content separation and mixing demand simultaneously according to claim 1, it is characterized in that: the editing and processing among the described step b is meant modification format description and content description or safeguards the mapping relations that it is correct or respectively validation verification is carried out in format description and content description.
7. the document recording method of satisfying format and content separation and mixing demand simultaneously according to claim 1, it is characterized in that: when the document to mixing among the described step b carried out editing and processing, the corresponding relation of format description and content description was dynamically produced by edit tool and safeguards.
CNB2004100309971A 2004-04-05 2004-04-05 Satisfy the document recording method of format and content separation and mixing demand simultaneously Expired - Lifetime CN100559369C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2004100309971A CN100559369C (en) 2004-04-05 2004-04-05 Satisfy the document recording method of format and content separation and mixing demand simultaneously

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100309971A CN100559369C (en) 2004-04-05 2004-04-05 Satisfy the document recording method of format and content separation and mixing demand simultaneously

Publications (2)

Publication Number Publication Date
CN1680933A CN1680933A (en) 2005-10-12
CN100559369C true CN100559369C (en) 2009-11-11

Family

ID=35067529

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100309971A Expired - Lifetime CN100559369C (en) 2004-04-05 2004-04-05 Satisfy the document recording method of format and content separation and mixing demand simultaneously

Country Status (1)

Country Link
CN (1) CN100559369C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100356370C (en) * 2005-12-15 2007-12-19 无锡永中科技有限公司 Processing method of enhancing opening speed of word processing file
CN100356371C (en) * 2005-12-20 2007-12-19 无锡永中科技有限公司 Method of inserting and playing slide in file
CN102541820B (en) * 2010-12-27 2015-08-05 北京大学 A kind of multi-format composite document generates and methods of exhibiting and system
CN107291763B (en) * 2016-04-05 2020-10-16 北大方正集团有限公司 Electronic document management method and management device
CN111178016A (en) * 2019-12-18 2020-05-19 中电投电力工程有限公司 Method for collaboratively editing and generating document

Also Published As

Publication number Publication date
CN1680933A (en) 2005-10-12

Similar Documents

Publication Publication Date Title
CN102103573B (en) Method and system for quickly generating files in open formats
CN102646125B (en) Structured digital content extraction and reorganization method
CN107315771B (en) Data exchange system customization method based on database table data dictionary
CN111753499A (en) Method for merging and displaying electronic form and OFD format file and generating directory
CN103123631B (en) The generation of official documents and correspondence, the methods of exhibiting of webpage official documents and correspondence, device and Website server
CN109977088A (en) A kind of method that preset format file is converted to OFD format
JP2006172444A5 (en)
CN101650711A (en) Method for generating report
JP2008234370A (en) Document processor and document processing method
JP5002729B2 (en) Data viewer management
CN100559369C (en) Satisfy the document recording method of format and content separation and mixing demand simultaneously
CN103309849A (en) Docx document creating and modifying method based on OpenXML (open extensive markup language)
CN113761859B (en) Electronic report definition method and device and electronic equipment
CN202795366U (en) System capable of generating digital publication
JP4373470B2 (en) Document conversion utilization system
CN102411498A (en) Method for realizing data model and graphical designer
CN101799890A (en) Certificate data processing method and system
CN102446206B (en) A kind of cross-platform switch and method of three-dimensional data
CN101661277B (en) Part processing method and device used for numerical control machine
CN104462045B (en) A kind of document processing method and device
US20090217156A1 (en) Method for Storing Localized XML Document Values
CN104063386B (en) A kind of method and apparatus of content object multiplexing
KR102253751B1 (en) A System for Generating Documents by Integrating Word-Processor and Database and a Method Therefore
Piris Extracting knowledge bases from table-structured web resources applied to the semantic based requirements engineering methodology softwiki
KR101387514B1 (en) Management method of xml document and thereof device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CX01 Expiry of patent term

Granted publication date: 20091111

CX01 Expiry of patent term