WO2017036152A1 - Method and device for generating product document - Google Patents

Method and device for generating product document Download PDF

Info

Publication number
WO2017036152A1
WO2017036152A1 PCT/CN2016/080769 CN2016080769W WO2017036152A1 WO 2017036152 A1 WO2017036152 A1 WO 2017036152A1 CN 2016080769 W CN2016080769 W CN 2016080769W WO 2017036152 A1 WO2017036152 A1 WO 2017036152A1
Authority
WO
WIPO (PCT)
Prior art keywords
document
product
target element
attribute value
mark
Prior art date
Application number
PCT/CN2016/080769
Other languages
French (fr)
Chinese (zh)
Inventor
效新歌
刘勇
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017036152A1 publication Critical patent/WO2017036152A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present application relates to, but is not limited to, the field of communications, and relates to a method and apparatus for generating a product document.
  • XML product documentation content can not be directly used in PowerPoint, resulting in PowerPoint needs to be developed separately, increasing workload and work costs; the content and architecture of the two are far from each other, there is no consistency, leading to the presentation Content is far from the reference books; when the content is updated, it is easy to synchronize the update, which can easily lead to content lag or even error; and increase management costs.
  • the embodiment of the invention provides a method and a device for generating a product document, which can solve the problem that the product presentation document and the product description document need to be separately developed in the related art, resulting in increased workload, unsynchronized content, and increased management cost.
  • An embodiment of the present invention provides a method for generating a product document, including:
  • Extensible markup language documents are obtained by editing each target element in an extensible markup language for document editing
  • the setting the classification identifier of each target element includes:
  • the method further includes: setting an attribute value of each element to an initial attribute value;
  • the presenting of the target element belonging to the product presentation document and not belonging to the product description document includes: setting an initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document to the first attribute value;
  • the sharing the mark of the target element belonging to the product presentation document and belonging to the product description document includes: setting an initial attribute value of the target element belonging to the product presentation document and belonging to the product description document to the second attribute value;
  • the description of the target element that is not part of the product presentation document and belongs to the product description document includes: the initial attribute value of the target element that does not belong to the product presentation document and belongs to the product description document remains unchanged.
  • the preset product document generation rule includes:
  • the target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
  • the target element for the description tag and the shared tag is displayed when the product description document is generated.
  • the target element for displaying the presentation mark and the shared mark includes: hiding the target element of the description mark;
  • the displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
  • the performing the hiding process on the target element of the description mark comprises: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
  • the hiding process of the target element of the preaching mark includes: an attribute for each target element The value is judged, and the target element equal to the first attribute value is hidden.
  • the embodiment of the invention further provides a device for generating a product document, comprising an element setting module, a classification identification module, a document editing module and a document generation module:
  • the element setting module is configured to: set an element of a product document in a document type definition, wherein the product document includes a product description document and a product presentation document;
  • the classification identifier module is configured to: select a target element from the elements according to a requirement of the current product document to be generated, and set a classification identifier of each target element;
  • the document editing module is configured to: use each of the target elements to perform document editing in an extensible markup language to obtain an extensible markup language document;
  • the document generating module is configured to: generate the corresponding product document by using the extensible markup language document according to the classification identifier and a preset product document generation rule.
  • the classification identifier module is configured to set a classification identifier of each target element by:
  • the element setting module is further configured to: when setting an element of the product document in the document type definition, setting an attribute value of each element as an initial attribute value;
  • the classification identification module is set to:
  • the initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value
  • the preset product document generation rule includes:
  • the target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
  • the target element for the description tag and the shared tag is displayed when the product description document is generated.
  • the target element for displaying the presentation mark and the shared mark includes: hiding the target element of the description mark;
  • the displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
  • the performing the hiding process on the target element of the description mark comprises: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
  • the concealing the target element of the preaching mark comprises: determining an attribute value of each target element, and performing a hiding process on the target element equal to the first attribute value.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • the method and device for generating a product document provided by the embodiment of the present invention, setting an element of a product document in a document type definition, the product document includes a product description document and a product presentation document; and selecting from the elements according to requirements of the current product document to be generated Target element, set the classification identifier of each target element; edit each target element in an extensible markup language to obtain an extensible markup language document; generate an extensible markup language document according to the classification identifier and the preset product document generation rule Corresponding product documentation.
  • product description documents and product presentation documents are developed in an extensible language, that is, using the same-original development, so that the content of the two documents can be synchronized, and the update errors or lagging problems can be avoided. Can reduce workload and work costs and reduce management costs.
  • FIG. 1 is a flowchart of a method for generating a product document according to Embodiment 1 of the present invention
  • FIG. 2-2 is a schematic diagram of a product description document in a method for generating a product document according to Embodiment 2 of the present invention
  • FIG. 2-3 is a schematic diagram of a product presentation document in a method for generating a product document according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic structural diagram of a device for generating a product document according to Embodiment 3 of the present invention.
  • the method for generating a product document provided by this embodiment is as shown in FIG. 1 , and the method includes the following steps:
  • Step S101 setting an element of a product document in a document type definition, where the product document includes a product description document and a product presentation document;
  • Step S102 Select a target element from the elements according to the requirement of the current product document to be generated, and set a classification identifier of each target element;
  • the required element of the current product document to be generated is selected from the elements in the document type definition as the target element.
  • the product document to be generated here refers to the product document that needs to be generated currently, and may be the product document that is first performed, or the product document that updates the product document.
  • the target element here refers to one or more elements required by the current product documentation.
  • the classification identifier is to distinguish which target elements correspond to the specific product documents, that is, which target elements are used in the specific product description documents, and which target elements are used in the product presentation documents. It is worth noting that the product description documents and product presentation documents are also included here. Which target elements are used.
  • Step S103 Performing document editing for each target element in an extensible markup language to obtain an extensible markup language document;
  • each target element is written into a complete extensible markup language document.
  • the extensible markup language document means that the product description document can be obtained, and the product presentation document can also be obtained, that is, the two product documents are homogenous development. of.
  • Step S104 Generate the corresponding product document by using the extensible markup language document according to the classification identifier and the preset product document generation rule.
  • the preset product document generation rule here refers to what product document the user needs, that is, whether the product description document or the product presentation document needs to be generated.
  • the preset product document generation rule may be designed as a corresponding XSLT (Extensible Style Sheet Language Transformations) style sheet, for example, the product description document is designed as a manual style sheet, and the product presentation document is designed as a slides style sheet. .
  • XSLT Extensible Style Sheet Language Transformations
  • setting the classification identifier of each target element includes: preaching a target element belonging to the product presentation document and not belonging to the product description document; and performing the target element belonging to the product presentation document and belonging to the product description document Share tags; describe the target elements that are not part of the product presentation document and that are part of the product description document.
  • the marking of each target element is one of them, and it should be understood that the manner in which the target element of which document type the target element belongs can be realized.
  • the attribute differentiation of the extensible language itself may be utilized for label differentiation.
  • the method further includes: setting an attribute value of each element to an initial attribute value; and preaching the target element belonging to the product presentation document and not belonging to the product description document includes: The initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value; sharing the target element belonging to the product presentation document and belonging to the product description document includes: The initial attribute value of the target element in the presentation document and belonging to the product description document is set to the second attribute value; the description of the target element that is not in the product presentation document and belongs to the product description document includes: The initial attribute values of the target elements that are not part of the product announcement document and that belong to the product description document remain unchanged. This remains unchanged and refers to an empty tag.
  • the preset product document generation rule includes: displaying a target element of the preaching mark and the shared mark when generating the product presentation document; and displaying the target element of the description mark and the shared mark when the product description document is generated.
  • the target element for displaying the preaching mark and the shared mark includes: hiding the target element of the description mark; and displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
  • the attribute value of the element may be directly judged, and the hiding of the target element of the description mark includes: determining the attribute value of each target element, and the target that is not equal to the first attribute value and the second attribute value The element is hidden; the hiding of the target element of the preaching mark includes: judging the attribute value of each target element, and hiding the target element equal to the first attribute value.
  • the method for generating a product document provided in this embodiment is as shown in FIG. 2-1, and the method includes the following steps:
  • Step S201 Define elements and attributes that meet the design requirements in the DTD.
  • Step S202 Design a set of element classification and recognition according to the characteristics of the service and the different characteristics of the various documents.
  • the content that is not displayed in the product presentation document does not perform any processing on slidesprops.
  • onlyslides is an example of the first attribute value
  • slides is an example of the second attribute value.
  • the content displayed here only in the product presentation document refers to the target element that belongs to the product presentation document and is not part of the product description document.
  • the content that can be displayed in both the product description document and the product presentation document refers to the target element that belongs to the product presentation document and belongs to the product description document; in the product description document, the content that is not displayed in the product presentation document means that it does not belong to The product is in the document and is the target element of the product documentation.
  • Step S203 Design different XSLT style sheets for manual and slides according to different characteristics of the service and various documents.
  • the value of the slidesprops attribute of each element is judged, and the content of the element equal to onlyslides is subjected to hidden processing.
  • the value of the slidesprops attribute of each element is judged, and the content of the element equal to onlyslides is subjected to hidden processing.
  • Step S204 Writing an XML document, and applying the element classification recognition rule in the above step S202 when performing the XML document editing.
  • Step S205 Perform writing and generating of a document.
  • a product description document as shown in FIG. 2-2 such as the product presentation document shown in FIG. 2-3, is generated.
  • the product document generating apparatus 300 includes an element setting module 301, a category identifying module 302, a document editing module 303, and a document generating module 304: wherein the element setting module 301 is set to: in the document An element of the product document is set in the type definition, wherein the product document includes a product description document and a product presentation document; the classification identification module 302 is configured to: select a target element from the elements according to the requirements of the current product document to be generated, and set each target The document editing module 303 is configured to: each target element is edited in an extensible markup language to obtain an extensible markup language document; the document generation module 304 is configured to: generate rules according to the classification identifier and the preset product document, Generate the corresponding product documentation for the Extensible Markup Language document.
  • the classification identification module 302 is configured to set the classification identifier of each target element in the following manner:
  • the element setting module 301 is further configured to: when setting an element of the product document in the document type definition, setting an attribute value of each element to an initial attribute value;
  • the classification identification module 302 is set to:
  • the initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value
  • the preset product document generation rules include:
  • the target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
  • the target element for the description tag and the shared tag is displayed when the product description document is generated.
  • the target elements of the presentation mark and the shared mark include: hiding the target element of the description mark;
  • the target elements that display the description tag and the shared tag include: hiding the target element of the preach tag.
  • the hiding process of the target element of the description mark includes: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
  • the hiding of the target element of the preaching mark includes: judging the attribute value of each target element, and hiding the target element equal to the first attribute value.
  • an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • This application is not limited to any specific combination of hardware and software.
  • the embodiment of the present application provides a method and a device for generating a product document, and the product description document and the product presentation document are all developed in an extensible language, that is, using the same-original development, so that the content of the two documents can be synchronized and can be Avoiding update errors or lagging problems can reduce workload and work costs and reduce management costs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

A method for generating a product document comprises: configuring elements of a product document in a document type definition, wherein the product document comprises a product introduction document and a product promotion document; selecting, according to a requirement of a current product document to be generated and from said elements, target elements, and configuring a classification identifier for each target element; performing, by employing the extensible markup language (XML), document editing on respective target elements to obtain an XML document; and generating, according to the classification identifiers and a predetermined product document generation rule, a corresponding product document from the XML document. By using the above technical solution, a product introduction document and a product promotion document are both developed by using the XML; namely, same-origin development is employed, so as to synchronize content of both documents to be consistent, prevent an update error or lag, reduce the workload and costs, and lower management costs.

Description

一种产品文档的生成方法和装置Method and device for generating product document 技术领域Technical field
本申请涉及但不限于通信领域,涉及一种产品文档的生成方法和装置。The present application relates to, but is not limited to, the field of communications, and relates to a method and apparatus for generating a product document.
背景技术Background technique
目前,大多数企业的产品说明文档采用可扩展标记语言(XML,Extensible Markup Language)技术,产品宣讲内容大部分使用Microsoft PowerPoint。这种情况,导致以下不少弊端:XML的产品文档内容不能直接用于PowerPoint,导致PowerPoint需要单独开发,增加工作量及工作成本;两者的内容及架构相差甚远,没有一致性,导致宣讲内容与参考书籍相差甚远;内容有更新时,不能同步更新很容易导致内容滞后甚至错误;以及增加管理成本等问题。At present, most companies' product documentation uses Extensible Markup Language (XML) technology, and most of the product presentations use Microsoft PowerPoint. This situation leads to the following drawbacks: XML product documentation content can not be directly used in PowerPoint, resulting in PowerPoint needs to be developed separately, increasing workload and work costs; the content and architecture of the two are far from each other, there is no consistency, leading to the presentation Content is far from the reference books; when the content is updated, it is easy to synchronize the update, which can easily lead to content lag or even error; and increase management costs.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供一种产品文档的生成方法和装置,能够解决相关技术中产品宣讲文档与产品说明文档需要单独开发导致增加工作量、内容不同步一致以及增加管理成本的问题。The embodiment of the invention provides a method and a device for generating a product document, which can solve the problem that the product presentation document and the product description document need to be separately developed in the related art, resulting in increased workload, unsynchronized content, and increased management cost.
本发明实施例提供一种产品文档的生成方法,包括:An embodiment of the present invention provides a method for generating a product document, including:
在文档类型定义中设置产品文档的元素,所述产品文档包括产品说明文档和产品宣讲文档;Setting elements of a product document in a document type definition, the product document including a product description document and a product presentation document;
根据当前待生成的产品文档的需求从元素中挑选出目标元素,设置每个目标元素的分类标识;Selecting the target elements from the elements according to the requirements of the current product document to be generated, and setting the classification identifier of each target element;
将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;Extensible markup language documents are obtained by editing each target element in an extensible markup language for document editing;
根据所述分类标识和预设产品文档生成规则,将所述可扩展标记语言文档生成对应的产品文档。 And generating, according to the classification identifier and the preset product document generation rule, the corresponding markup language document to generate a corresponding product document.
可选地,所述设置每个目标元素的分类标识包括:Optionally, the setting the classification identifier of each target element includes:
对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记;Preaching a target element that belongs to the product presentation document and is not part of the product description document;
对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记;Share the target elements belonging to the product presentation document and belonging to the product description document;
对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记。Describe the target elements that are not part of the product presentation document and are part of the product description document.
可选地,在文档类型定义中设置产品文档的元素时,所述方法还包括:设置每个元素的属性值为初始属性值;Optionally, when the element of the product document is set in the document type definition, the method further includes: setting an attribute value of each element to an initial attribute value;
所述对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记包括:将对属于产品宣讲文档且不属于产品说明文档的目标元素的初始属性值设置为第一属性值;The presenting of the target element belonging to the product presentation document and not belonging to the product description document includes: setting an initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document to the first attribute value;
所述对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记包括:将对属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值设置为第二属性值;The sharing the mark of the target element belonging to the product presentation document and belonging to the product description document includes: setting an initial attribute value of the target element belonging to the product presentation document and belonging to the product description document to the second attribute value;
所述对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记包括:将对不属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值保持不变。The description of the target element that is not part of the product presentation document and belongs to the product description document includes: the initial attribute value of the target element that does not belong to the product presentation document and belongs to the product description document remains unchanged.
可选地,所述预设产品文档生成规则包括:Optionally, the preset product document generation rule includes:
生成产品宣讲文档时,显示宣讲标记和共享标记的目标元素;The target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
生成产品说明文档时,显示说明标记和共享标记的目标元素。The target element for the description tag and the shared tag is displayed when the product description document is generated.
可选地,Optionally,
所述显示宣讲标记和共享标记的目标元素包括:对说明标记的目标元素进行隐藏处理;The target element for displaying the presentation mark and the shared mark includes: hiding the target element of the description mark;
所述显示说明标记和共享标记的目标元素包括:对宣讲标记的目标元素进行隐藏处理。The displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
可选地,Optionally,
所述对说明标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对不等于第一属性值和第二属性值的目标元素进行隐藏处理;The performing the hiding process on the target element of the description mark comprises: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
所述对宣讲标记的目标元素进行隐藏处理包括:对每个目标元素的属性 值进行判断,对等于第一属性值的目标元素进行隐藏处理。The hiding process of the target element of the preaching mark includes: an attribute for each target element The value is judged, and the target element equal to the first attribute value is hidden.
本发明实施例还提供一种产品文档的生成装置,包括元素设置模块、分类标识模块、文档编辑模块和文档生成模块:The embodiment of the invention further provides a device for generating a product document, comprising an element setting module, a classification identification module, a document editing module and a document generation module:
所述元素设置模块设置为:在文档类型定义中设置产品文档的元素,其中,所述产品文档包括产品说明文档和产品宣讲文档;The element setting module is configured to: set an element of a product document in a document type definition, wherein the product document includes a product description document and a product presentation document;
所述分类标识模块设置为:根据当前待生成的产品文档的需求从元素中挑选出目标元素,设置每个目标元素的分类标识;The classification identifier module is configured to: select a target element from the elements according to a requirement of the current product document to be generated, and set a classification identifier of each target element;
所述文档编辑模块设置为:将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;The document editing module is configured to: use each of the target elements to perform document editing in an extensible markup language to obtain an extensible markup language document;
所述文档生成模块设置为:根据所述分类标识和预设产品文档生成规则将所述可扩展标记语言文档生成对应的产品文档。The document generating module is configured to: generate the corresponding product document by using the extensible markup language document according to the classification identifier and a preset product document generation rule.
可选地,所述分类标识模块是设置为通过以下方式设置每个目标元素的分类标识:Optionally, the classification identifier module is configured to set a classification identifier of each target element by:
对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记;Preaching a target element that belongs to the product presentation document and is not part of the product description document;
对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记;Share the target elements belonging to the product presentation document and belonging to the product description document;
对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记。Describe the target elements that are not part of the product presentation document and are part of the product description document.
可选地,Optionally,
所述元素设置模块还设置为:在文档类型定义中设置产品文档的元素时,设置每个元素的属性值为初始属性值;The element setting module is further configured to: when setting an element of the product document in the document type definition, setting an attribute value of each element as an initial attribute value;
所述分类标识模块是设置为:The classification identification module is set to:
将对属于产品宣讲文档且不属于产品说明文档的目标元素的初始属性值设置为第一属性值;The initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value;
将对属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值设置为第二属性值;Setting an initial attribute value of a target element belonging to the product presentation document and belonging to the product description document to a second attribute value;
将对不属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值保持不变。The initial attribute values for the target elements that are not part of the product presentation document and that belong to the product description document will remain unchanged.
可选地,所述预设产品文档生成规则包括: Optionally, the preset product document generation rule includes:
生成产品宣讲文档时,显示宣讲标记和共享标记的目标元素;The target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
生成产品说明文档时,显示说明标记和共享标记的目标元素。The target element for the description tag and the shared tag is displayed when the product description document is generated.
可选地,Optionally,
所述显示宣讲标记和共享标记的目标元素包括:对说明标记的目标元素进行隐藏处理;The target element for displaying the presentation mark and the shared mark includes: hiding the target element of the description mark;
所述显示说明标记和共享标记的目标元素包括:对宣讲标记的目标元素进行隐藏处理。The displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
可选地,Optionally,
所述对说明标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对不等于第一属性值和第二属性值的目标元素进行隐藏处理;The performing the hiding process on the target element of the description mark comprises: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
所述对宣讲标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对等于第一属性值的目标元素进行隐藏处理。The concealing the target element of the preaching mark comprises: determining an attribute value of each target element, and performing a hiding process on the target element equal to the first attribute value.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的产品文档的生成方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
本发明实施例的有益效果是:The beneficial effects of the embodiments of the present invention are:
本发明实施例提供的产品文档的生成方法和装置,在文档类型定义中设置产品文档的元素,产品文档包括产品说明文档和产品宣讲文档;根据当前待生成的产品文档的需求从元素中挑选出目标元素,设置每个目标元素的分类标识;将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;根据分类标识和预设产品文档生成规则,将可扩展标记语言文档生成对应的产品文档。与相关技术相比,将产品说明文档与产品宣讲文档都采用可扩展语言开发,即采用同源开发,这样可以让两者的文档内容进行同步一致,并且能够避免更新错误或者滞后的问题,进一步,可以减少工作量及工作成本以及降低管理成本。The method and device for generating a product document provided by the embodiment of the present invention, setting an element of a product document in a document type definition, the product document includes a product description document and a product presentation document; and selecting from the elements according to requirements of the current product document to be generated Target element, set the classification identifier of each target element; edit each target element in an extensible markup language to obtain an extensible markup language document; generate an extensible markup language document according to the classification identifier and the preset product document generation rule Corresponding product documentation. Compared with related technologies, product description documents and product presentation documents are developed in an extensible language, that is, using the same-original development, so that the content of the two documents can be synchronized, and the update errors or lagging problems can be avoided. Can reduce workload and work costs and reduce management costs.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述 BRIEF abstract
图1为本发明实施例一提供的产品文档的生成方法的流程图;1 is a flowchart of a method for generating a product document according to Embodiment 1 of the present invention;
图2-1为本发明实施例二提供的产品文档的生成方法的流程图;2-1 is a flowchart of a method for generating a product document according to Embodiment 2 of the present invention;
图2-2为本发明实施例二提供的产品文档的生成方法中的产品说明文档的示意图;2-2 is a schematic diagram of a product description document in a method for generating a product document according to Embodiment 2 of the present invention;
图2-3为本发明实施例二提供的产品文档的生成方法中的产品宣讲文档的示意图;2-3 is a schematic diagram of a product presentation document in a method for generating a product document according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的产品文档的生成装置的结构示意图。FIG. 3 is a schematic structural diagram of a device for generating a product document according to Embodiment 3 of the present invention.
本发明的实施方式Embodiments of the invention
下面将结合附图对本发明实施例中的技术方案进行清楚、完整地描述,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings, which are a part of the embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
实施例一Embodiment 1
本实施例提供的产品文档的生成方法,如图1所示,该方法包括以下步骤:The method for generating a product document provided by this embodiment is as shown in FIG. 1 , and the method includes the following steps:
步骤S101:在文档类型定义中设置产品文档的元素,产品文档包括产品说明文档和产品宣讲文档;Step S101: setting an element of a product document in a document type definition, where the product document includes a product description document and a product presentation document;
在该步骤中,在文档类型定义(Document Type Definition,DTD)中设置满足设计要求的元素时需要考虑产品文档的特性,即需要考虑产品说明文档、产品宣讲文档的不同特性、相同特性及相互关联特性,使新修改的DTD能覆盖到设计要求。In this step, when setting the elements that meet the design requirements in the Document Type Definition (DTD), you need to consider the characteristics of the product documentation, that is, you need to consider the product description document, the different characteristics of the product presentation document, the same characteristics, and the correlation. Features that enable newly modified DTDs to cover design requirements.
步骤S102:根据当前待生成的产品文档的需求从元素中挑选出目标元素,设置每个目标元素的分类标识;Step S102: Select a target element from the elements according to the requirement of the current product document to be generated, and set a classification identifier of each target element;
在该步骤中,从文档类型定义中的元素中选取当前待生成的产品文档的需要的元素作为目标元素。这里的待生成的产品文档是指当前需要生成的产品文档,可以是第一次进行的产品文档,也可以是进行产品文档的更新的产品文档。这里的目标元素是指当前产品文档需要的一个或多个元素。这里的 分类标识是为了区分具体产品文档对应有哪些目标元素,即具体的产品说明文档用到哪些目标元素,产品宣讲文档用到哪些目标元素,值得注意的是,这里还包括产品说明文档和产品宣讲文档都用到哪些目标元素。In this step, the required element of the current product document to be generated is selected from the elements in the document type definition as the target element. The product document to be generated here refers to the product document that needs to be generated currently, and may be the product document that is first performed, or the product document that updates the product document. The target element here refers to one or more elements required by the current product documentation. here The classification identifier is to distinguish which target elements correspond to the specific product documents, that is, which target elements are used in the specific product description documents, and which target elements are used in the product presentation documents. It is worth noting that the product description documents and product presentation documents are also included here. Which target elements are used.
步骤S103:将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;Step S103: Performing document editing for each target element in an extensible markup language to obtain an extensible markup language document;
在该步骤中,将每个目标元素编写完整的可扩展标记语言文档,这里的可扩展标记语言文档是指可以得到产品说明文档,也可以得到产品宣讲文档,即两个产品文档是同源开发的。In this step, each target element is written into a complete extensible markup language document. Here, the extensible markup language document means that the product description document can be obtained, and the product presentation document can also be obtained, that is, the two product documents are homogenous development. of.
步骤S104:根据所述分类标识和预设产品文档生成规则,将所述可扩展标记语言文档生成对应的产品文档。Step S104: Generate the corresponding product document by using the extensible markup language document according to the classification identifier and the preset product document generation rule.
在该步骤中,这里的预设产品文档生成规则是指用户需要什么产品文档,即需要生成产品说明文档还是产品宣讲文档。可选地,可以将预设产品文档生成规则设计为对应的XSLT(Extensible Stylesheet Language Transformations,扩展样式表转换语言)样式表,例如产品说明文档设计为manual样式表、产品宣讲文档设计为slides样式表。In this step, the preset product document generation rule here refers to what product document the user needs, that is, whether the product description document or the product presentation document needs to be generated. Optionally, the preset product document generation rule may be designed as a corresponding XSLT (Extensible Style Sheet Language Transformations) style sheet, for example, the product description document is designed as a manual style sheet, and the product presentation document is designed as a slides style sheet. .
在上述步骤S102中,设置每个目标元素的分类标识包括:对属于产品宣讲文档中且不属于产品说明文档的目标元素进行宣讲标记;对属于产品宣讲文档中且属于产品说明文档的目标元素进行共享标记;对不属于产品宣讲文档中且属于产品说明文档的目标元素进行说明标记。这里的进行每个目标元素的标记为其中的一种方式,应该理解为只要能够区分目标元素属于哪种文档类型的目标元素的方式都可以实现。In the above step S102, setting the classification identifier of each target element includes: preaching a target element belonging to the product presentation document and not belonging to the product description document; and performing the target element belonging to the product presentation document and belonging to the product description document Share tags; describe the target elements that are not part of the product presentation document and that are part of the product description document. Here, the marking of each target element is one of them, and it should be understood that the manner in which the target element of which document type the target element belongs can be realized.
可选地,为了减少处理,可以利用可扩展语言自身的属性特性进行标记区分。在文档类型定义中设置产品文档的元素时,所述方法还包括:设置每个元素的属性值为初始属性值;对属于产品宣讲文档中且不属于产品说明文档的目标元素进行宣讲标记包括:将对属于产品宣讲文档中且不属于产品说明文档的目标元素的初始属性值设置为第一属性值;对属于产品宣讲文档中且属于产品说明文档的目标元素进行共享标记包括:将对属于产品宣讲文档中且属于产品说明文档的目标元素的初始属性值设置为第二属性值;对不属于产品宣讲文档中且属于产品说明文档的目标元素进行说明标记包括:将对 不属于产品宣讲文档中且属于产品说明文档的目标元素的初始属性值保持不变。这里的保持不变即指空标记。Alternatively, in order to reduce processing, the attribute differentiation of the extensible language itself may be utilized for label differentiation. When setting an element of a product document in a document type definition, the method further includes: setting an attribute value of each element to an initial attribute value; and preaching the target element belonging to the product presentation document and not belonging to the product description document includes: The initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value; sharing the target element belonging to the product presentation document and belonging to the product description document includes: The initial attribute value of the target element in the presentation document and belonging to the product description document is set to the second attribute value; the description of the target element that is not in the product presentation document and belongs to the product description document includes: The initial attribute values of the target elements that are not part of the product announcement document and that belong to the product description document remain unchanged. This remains unchanged and refers to an empty tag.
在上述步骤S104中,预设产品文档生成规则包括:生成产品宣讲文档时,显示宣讲标记和共享标记的目标元素;生成产品说明文档时,显示说明标记和共享标记的目标元素。其中,显示宣讲标记和共享标记的目标元素包括:对说明标记的目标元素进行隐藏处理;显示说明标记和共享标记的目标元素包括:对宣讲标记的目标元素进行隐藏处理。In the above step S104, the preset product document generation rule includes: displaying a target element of the preaching mark and the shared mark when generating the product presentation document; and displaying the target element of the description mark and the shared mark when the product description document is generated. The target element for displaying the preaching mark and the shared mark includes: hiding the target element of the description mark; and displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
可选地,可以直接对元素的属性值进行判断,对说明标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对不等于第一属性值和第二属性值的目标元素进行隐藏处理;对宣讲标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对等于第一属性值的目标元素进行隐藏处理。Optionally, the attribute value of the element may be directly judged, and the hiding of the target element of the description mark includes: determining the attribute value of each target element, and the target that is not equal to the first attribute value and the second attribute value The element is hidden; the hiding of the target element of the preaching mark includes: judging the attribute value of each target element, and hiding the target element equal to the first attribute value.
实施例二Embodiment 2
本实施例提供的产品文档的生成方法,如图2-1所示,该方法包括以下步骤:The method for generating a product document provided in this embodiment is as shown in FIG. 2-1, and the method includes the following steps:
步骤S201:在DTD中定义可满足设计要求的元素及属性。Step S201: Define elements and attributes that meet the design requirements in the DTD.
在该步骤中,在进行DTD定义时,需要考虑产品说明文档、产品宣讲文档的不同特性、相同特性及相互关联特性,使新修改的DTD能覆盖到设计要求。本例中,为所有元素设计一个产品宣传幻灯片slidesprops属性,这里的slidesprops属性是初始属性值的一种示例。具体的实现可以是,In this step, when defining the DTD, it is necessary to consider the different characteristics of the product description document, the product presentation document, the same characteristics and the interrelated characteristics, so that the newly modified DTD can cover the design requirements. In this case, design a product promotion slideslidesprops property for all elements, where the slidesprops property is an example of the initial property values. The specific implementation can be,
Figure PCTCN2016080769-appb-000001
Figure PCTCN2016080769-appb-000001
步骤S202:根据业务特点及各种文档的不同特性,设计一套元素分类识别。 Step S202: Design a set of element classification and recognition according to the characteristics of the service and the different characteristics of the various documents.
在该步骤中,对于仅在产品宣讲文档中显示的内容,设置slidesprops=onlyslides;对于可同时在产品说明文档和产品宣讲文档中显示的内容,设置slidesprops=slides;对于在产品说明文档中显示,在产品宣讲文档中不显示的内容,不对slidesprops进行任何处理,这里的onlyslides是第一属性值的一种示例,slides是第二属性值的一种示例。这里的仅在产品宣讲文档中显示的内容是指对属于产品宣讲文档中且不属于产品说明文档的目标元素。可同时在产品说明文档和产品宣讲文档中显示的内容是指属于产品宣讲文档中且属于产品说明文档的目标元素;在产品说明文档中显示,在产品宣讲文档中不显示的内容是指不属于产品宣讲文档中且属于产品说明文档的目标元素。In this step, set slidesprops=onlyslides for content that is only displayed in the product presentation document; set slidesprops=slides for content that can be displayed in both the product description document and the product presentation document; for display in the product documentation, The content that is not displayed in the product presentation document does not perform any processing on slidesprops. Here onlyslides is an example of the first attribute value, and slides is an example of the second attribute value. The content displayed here only in the product presentation document refers to the target element that belongs to the product presentation document and is not part of the product description document. The content that can be displayed in both the product description document and the product presentation document refers to the target element that belongs to the product presentation document and belongs to the product description document; in the product description document, the content that is not displayed in the product presentation document means that it does not belong to The product is in the document and is the target element of the product documentation.
步骤S203:根据业务特点及各种文档的不同特性,分别针对manual、slides设计不同的XSLT样式表。Step S203: Design different XSLT style sheets for manual and slides according to different characteristics of the service and various documents.
在该步骤中,设计slides样式表时,对于每个元素的slidesprops属性值进行判断,对不等于slides或onlyslides的元素内容进行隐藏(hidden)处理。例如:In this step, when designing the slides style sheet, the value of the slidesprops attribute of each element is judged, and the content of the elements not equal to slides or onlyslides is hidden. E.g:
<xsl:if test="slidesprops=”"><xsl:if test="slidesprops="">
                   <xsl:attribute name="hidden">yes</xsl:attribute><xsl:attribute name="hidden">yes</xsl:attribute>
       </xsl:if></xsl:if>
可选地,设计manual样式表时,对于每个元素的slidesprops属性值进行判断,对等于onlyslides的元素内容进行hidden处理。例如:Optionally, when designing the manual style sheet, the value of the slidesprops attribute of each element is judged, and the content of the element equal to onlyslides is subjected to hidden processing. E.g:
<xsl:if test="slidesprops='onlyslides'"><xsl:if test="slidesprops='onlyslides'">
                   <xsl:attribute name="hidden">yes</xsl:attribute><xsl:attribute name="hidden">yes</xsl:attribute>
       </xsl:if></xsl:if>
步骤S204:编写XML文档,在进行XML文档编辑的时候,应用上述步骤S202中的元素分类识别规则。Step S204: Writing an XML document, and applying the element classification recognition rule in the above step S202 when performing the XML document editing.
该步骤中,例如:<image slidesprops="slides"href="x-wc://file=img-0002117877.wmf"></image>。In this step, for example: <image slidesprops="slides"href="x-wc://file=img-0002117877.wmf"></image>.
步骤S205:进行文档的编写和生成。 Step S205: Perform writing and generating of a document.
在该步骤中,结合上述步骤S204中的文档例子,以及分别应用步骤S203中的样式表,生成出如图2-2所示的产品说明文档,如图2-3所示的产品宣讲文档。In this step, in combination with the document example in the above step S204, and respectively applying the style sheet in step S203, a product description document as shown in FIG. 2-2, such as the product presentation document shown in FIG. 2-3, is generated.
实施例三Embodiment 3
本实施例提供的产品文档的生成装置300,如图3所示,包括元素设置模块301、分类标识模块302、文档编辑模块303和文档生成模块304:其中,元素设置模块301设置为:在文档类型定义中设置产品文档的元素,其中,产品文档包括产品说明文档和产品宣讲文档;分类标识模块302设置为:根据当前待生成的产品文档的需求从元素中挑选出目标元素,设置每个目标元素的分类标识;文档编辑模块303设置为:将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;文档生成模块304设置为:根据分类标识和预设产品文档生成规则,将可扩展标记语言文档生成对应的产品文档。The product document generating apparatus 300 provided in this embodiment, as shown in FIG. 3, includes an element setting module 301, a category identifying module 302, a document editing module 303, and a document generating module 304: wherein the element setting module 301 is set to: in the document An element of the product document is set in the type definition, wherein the product document includes a product description document and a product presentation document; the classification identification module 302 is configured to: select a target element from the elements according to the requirements of the current product document to be generated, and set each target The document editing module 303 is configured to: each target element is edited in an extensible markup language to obtain an extensible markup language document; the document generation module 304 is configured to: generate rules according to the classification identifier and the preset product document, Generate the corresponding product documentation for the Extensible Markup Language document.
可选地,分类标识模块302是设置为通过以下方式设置每个目标元素的分类标识:Optionally, the classification identification module 302 is configured to set the classification identifier of each target element in the following manner:
对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记;Preaching a target element that belongs to the product presentation document and is not part of the product description document;
对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记;Share the target elements belonging to the product presentation document and belonging to the product description document;
对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记。Describe the target elements that are not part of the product presentation document and are part of the product description document.
可选地,Optionally,
元素设置模块301还设置为:在文档类型定义中设置产品文档的元素时,设置每个元素的属性值为初始属性值;The element setting module 301 is further configured to: when setting an element of the product document in the document type definition, setting an attribute value of each element to an initial attribute value;
分类标识模块302是设置为:The classification identification module 302 is set to:
将对属于产品宣讲文档且不属于产品说明文档的目标元素的初始属性值设置为第一属性值;The initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value;
将对属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值设置为第二属性值; Setting an initial attribute value of a target element belonging to the product presentation document and belonging to the product description document to a second attribute value;
将对不属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值保持不变。The initial attribute values for the target elements that are not part of the product presentation document and that belong to the product description document will remain unchanged.
可选地,预设产品文档生成规则包括:Optionally, the preset product document generation rules include:
生成产品宣讲文档时,显示宣讲标记和共享标记的目标元素;The target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
生成产品说明文档时,显示说明标记和共享标记的目标元素。The target element for the description tag and the shared tag is displayed when the product description document is generated.
可选地,Optionally,
显示宣讲标记和共享标记的目标元素包括:对说明标记的目标元素进行隐藏处理;The target elements of the presentation mark and the shared mark include: hiding the target element of the description mark;
显示说明标记和共享标记的目标元素包括:对宣讲标记的目标元素进行隐藏处理。The target elements that display the description tag and the shared tag include: hiding the target element of the preach tag.
可选地,Optionally,
对说明标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对不等于第一属性值和第二属性值的目标元素进行隐藏处理;The hiding process of the target element of the description mark includes: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
对宣讲标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对等于第一属性值的目标元素进行隐藏处理。The hiding of the target element of the preaching mark includes: judging the attribute value of each target element, and hiding the target element equal to the first attribute value.
此外,本发明实施例还提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被执行时实现上述的产品文档的生成方法。In addition, an embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, which are implemented when the computer executable instructions are executed.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,上述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本申请不限制于任何特定形式的硬件和软件的结合。A person of ordinary skill in the art may understand that all or part of the above steps may be completed by a program to instruct related hardware (for example, a processor), and the program may be stored in a computer readable storage medium such as a read only memory, a magnetic disk or an optical disk. . Alternatively, all or part of the steps of the above embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function. This application is not limited to any specific combination of hardware and software.
以上实施例仅用以说明本申请的技术方案而非限制,仅仅参照较佳实施例对本申请进行了详细说明。本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或者等同替换,而不脱离本申请技术方案的精神和范 围,均应涵盖在本申请的权利要求范围当中。The above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to be limiting, and the present application is only described in detail with reference to the preferred embodiments. It should be understood by those skilled in the art that modifications or equivalents may be made to the technical solutions of the present application without departing from the spirit and scope of the technical solutions of the present application. It is intended to be included within the scope of the claims of the present application.
工业实用性Industrial applicability
本申请实施例提供一种产品文档的生成方法和装置,将产品说明文档与产品宣讲文档都采用可扩展语言开发,即采用同源开发,这样可以让两者的文档内容进行同步一致,并且能够避免更新错误或者滞后的问题,可以减少工作量及工作成本以及降低管理成本。 The embodiment of the present application provides a method and a device for generating a product document, and the product description document and the product presentation document are all developed in an extensible language, that is, using the same-original development, so that the content of the two documents can be synchronized and can be Avoiding update errors or lagging problems can reduce workload and work costs and reduce management costs.

Claims (12)

  1. 一种产品文档的生成方法,包括:A method for generating a product document, including:
    在文档类型定义中设置产品文档的元素,所述产品文档包括产品说明文档和产品宣讲文档;Setting elements of a product document in a document type definition, the product document including a product description document and a product presentation document;
    根据当前待生成的产品文档的需求从所述元素中挑选出目标元素,设置每个目标元素的分类标识;Selecting target elements from the elements according to requirements of the current product document to be generated, and setting a classification identifier of each target element;
    将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;Extensible markup language documents are obtained by editing each target element in an extensible markup language for document editing;
    根据所述分类标识和预设产品文档生成规则,将所述可扩展标记语言文档生成对应的产品文档。And generating, according to the classification identifier and the preset product document generation rule, the corresponding markup language document to generate a corresponding product document.
  2. 如权利要求1所述的产品文档的生成方法,其中,所述设置每个目标元素的分类标识包括:The method for generating a product document according to claim 1, wherein the setting the classification identifier of each target element comprises:
    对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记;Preaching a target element that belongs to the product presentation document and is not part of the product description document;
    对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记;Share the target elements belonging to the product presentation document and belonging to the product description document;
    对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记。Describe the target elements that are not part of the product presentation document and are part of the product description document.
  3. 如权利要求2所述的产品文档的生成方法,所述在文档类型定义中设置产品文档的元素时,所述方法还包括:设置每个元素的属性值为初始属性值;The method for generating a product document according to claim 2, wherein when the element of the product document is set in the document type definition, the method further comprises: setting an attribute value of each element to an initial attribute value;
    所述对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记包括:将对属于产品宣讲文档且不属于产品说明文档的目标元素的初始属性值设置为第一属性值;The presenting of the target element belonging to the product presentation document and not belonging to the product description document includes: setting an initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document to the first attribute value;
    所述对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记包括:将对属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值设置为第二属性值;The sharing the mark of the target element belonging to the product presentation document and belonging to the product description document includes: setting an initial attribute value of the target element belonging to the product presentation document and belonging to the product description document to the second attribute value;
    所述对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记包括:将对不属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值保持不变。 The description of the target element that is not part of the product presentation document and belongs to the product description document includes: the initial attribute value of the target element that does not belong to the product presentation document and belongs to the product description document remains unchanged.
  4. 如权利要求3所述的产品文档的生成方法,其中,所述预设产品文档生成规则包括:The method for generating a product document according to claim 3, wherein the preset product document generation rule comprises:
    生成产品宣讲文档时,显示宣讲标记和共享标记的目标元素;The target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
    生成产品说明文档时,显示说明标记和共享标记的目标元素。The target element for the description tag and the shared tag is displayed when the product description document is generated.
  5. 如权利要求4所述的产品文档的生成方法,其中,A method of generating a product document according to claim 4, wherein
    所述显示宣讲标记和共享标记的目标元素包括:对说明标记的目标元素进行隐藏处理;The target element for displaying the presentation mark and the shared mark includes: hiding the target element of the description mark;
    所述显示说明标记和共享标记的目标元素包括:对宣讲标记的目标元素进行隐藏处理。The displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
  6. 如权利要求5所述的产品文档的生成方法,其中,A method of generating a product document according to claim 5, wherein
    所述对说明标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对不等于第一属性值和第二属性值的目标元素进行隐藏处理;The performing the hiding process on the target element of the description mark comprises: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
    所述对宣讲标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对等于第一属性值的目标元素进行隐藏处理。The concealing the target element of the preaching mark comprises: determining an attribute value of each target element, and performing a hiding process on the target element equal to the first attribute value.
  7. 一种产品文档的生成装置,包括元素设置模块、分类标识模块、文档编辑模块和文档生成模块:A device for generating a product document, comprising an element setting module, a classification identification module, a document editing module and a document generation module:
    所述元素设置模块设置为:在文档类型定义中设置产品文档的元素,其中,所述产品文档包括产品说明文档和产品宣讲文档;The element setting module is configured to: set an element of a product document in a document type definition, wherein the product document includes a product description document and a product presentation document;
    所述分类标识模块设置为:根据当前待生成的产品文档的需求从所述元素中挑选出目标元素,设置每个目标元素的分类标识;The classification identifier module is configured to: select a target element from the elements according to a requirement of a current product document to be generated, and set a classification identifier of each target element;
    所述文档编辑模块设置为:将每个目标元素采用可扩展标记语言进行文档编辑得到可扩展标记语言文档;The document editing module is configured to: use each of the target elements to perform document editing in an extensible markup language to obtain an extensible markup language document;
    所述文档生成模块设置为:根据所述分类标识和预设产品文档生成规则,将所述可扩展标记语言文档生成对应的产品文档。The document generating module is configured to generate a corresponding product document by using the extensible markup language document according to the classification identifier and a preset product document generation rule.
  8. 如权利要求7所述的产品文档的生成装置,其中,所述分类标识模块是设置为通过以下方式设置每个目标元素的分类标识:The product document generating apparatus according to claim 7, wherein said classification identification module is a classification identifier set to set each target element by:
    对属于产品宣讲文档且不属于产品说明文档的目标元素进行宣讲标记; Preaching a target element that belongs to the product presentation document and is not part of the product description document;
    对属于产品宣讲文档且属于产品说明文档的目标元素进行共享标记;Share the target elements belonging to the product presentation document and belonging to the product description document;
    对不属于产品宣讲文档且属于产品说明文档的目标元素进行说明标记。Describe the target elements that are not part of the product presentation document and are part of the product description document.
  9. 如权利要求8所述的产品文档的生成装置,其中,The product document generating apparatus according to claim 8, wherein
    所述元素设置模块还设置为:在文档类型定义中设置产品文档的元素时,设置每个元素的属性值为初始属性值;The element setting module is further configured to: when setting an element of the product document in the document type definition, setting an attribute value of each element as an initial attribute value;
    所述分类标识模块是设置为:The classification identification module is set to:
    将对属于产品宣讲文档且不属于产品说明文档的目标元素的初始属性值设置为第一属性值;The initial attribute value of the target element belonging to the product presentation document and not belonging to the product description document is set to the first attribute value;
    将对属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值设置为第二属性值;Setting an initial attribute value of a target element belonging to the product presentation document and belonging to the product description document to a second attribute value;
    将对不属于产品宣讲文档且属于产品说明文档的目标元素的初始属性值保持不变。The initial attribute values for the target elements that are not part of the product presentation document and that belong to the product description document will remain unchanged.
  10. 如权利要求9所述的产品文档的生成装置,其中,所述预设产品文档生成规则包括:The device for generating a product document according to claim 9, wherein the preset product document generation rule comprises:
    生成产品宣讲文档时,显示宣讲标记和共享标记的目标元素;The target elements of the presentation mark and the shared mark are displayed when the product presentation document is generated;
    生成产品说明文档时,显示说明标记和共享标记的目标元素。The target element for the description tag and the shared tag is displayed when the product description document is generated.
  11. 如权利要求10所述的产品文档的生成装置,其中,A product document generating apparatus according to claim 10, wherein
    所述显示宣讲标记和共享标记的目标元素包括:对说明标记的目标元素进行隐藏处理;The target element for displaying the presentation mark and the shared mark includes: hiding the target element of the description mark;
    所述显示说明标记和共享标记的目标元素包括:对宣讲标记的目标元素进行隐藏处理。The displaying the target element of the description mark and the shared mark includes: hiding the target element of the preach mark.
  12. 如权利要求11所述的产品文档的生成装置,其中,A product document generating apparatus according to claim 11, wherein
    所述对说明标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对不等于第一属性值和第二属性值的目标元素进行隐藏处理;The performing the hiding process on the target element of the description mark comprises: determining the attribute value of each target element, and performing hidden processing on the target element not equal to the first attribute value and the second attribute value;
    所述对宣讲标记的目标元素进行隐藏处理包括:对每个目标元素的属性值进行判断,对等于第一属性值的目标元素进行隐藏处理。 The concealing the target element of the preaching mark comprises: determining an attribute value of each target element, and performing a hiding process on the target element equal to the first attribute value.
PCT/CN2016/080769 2015-08-28 2016-04-29 Method and device for generating product document WO2017036152A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510543894.3 2015-08-28
CN201510543894.3A CN106484380B (en) 2015-08-28 2015-08-28 Method and device for generating product document

Publications (1)

Publication Number Publication Date
WO2017036152A1 true WO2017036152A1 (en) 2017-03-09

Family

ID=58186483

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080769 WO2017036152A1 (en) 2015-08-28 2016-04-29 Method and device for generating product document

Country Status (2)

Country Link
CN (1) CN106484380B (en)
WO (1) WO2017036152A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920181A (en) * 2018-06-29 2018-11-30 北京拜克洛克科技有限公司 Document handling method, device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101432729A (en) * 2004-08-21 2009-05-13 科-爱克思普莱斯公司 Methods, systems, and apparatuses for extended enterprise commerce
CN103890759A (en) * 2011-09-01 2014-06-25 杜余易 An apparatus and a method for simplying and displaying information

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060106822A1 (en) * 2004-11-17 2006-05-18 Chao-Chun Lee Web-based editing system of compound documents and method thereof
CN102982010B (en) * 2011-09-02 2016-06-22 北大方正集团有限公司 The method and apparatus extracting file structure
CN102831137B (en) * 2012-01-16 2015-09-16 中新力合股份有限公司 A kind of methods of exhibiting of company information and the system based on the method
CN104166551B (en) * 2014-08-14 2017-11-24 华为技术有限公司 A kind of application interface development approach and development device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101432729A (en) * 2004-08-21 2009-05-13 科-爱克思普莱斯公司 Methods, systems, and apparatuses for extended enterprise commerce
CN103890759A (en) * 2011-09-01 2014-06-25 杜余易 An apparatus and a method for simplying and displaying information

Also Published As

Publication number Publication date
CN106484380A (en) 2017-03-08
CN106484380B (en) 2020-10-16

Similar Documents

Publication Publication Date Title
US20200257848A1 (en) System and method for generating task-embedded documents
US10042951B2 (en) Contextual commenting on the web
US10572581B2 (en) System and method for web content presentation management
US8850306B2 (en) Techniques to create structured document templates using enhanced content controls
US20100318894A1 (en) Modifications to Editable Elements of Web Pages Rendered in Word Processor Applications
AU2019226143B2 (en) Modifying native document comments in a preview
US20140258832A1 (en) Computer Implemented System and Method for Author Editing of XML Documents With Structured Element Protection
WO2016032080A1 (en) Chart conversion system using metadata and method therefor
KR102471587B1 (en) Documents conversion apparatus, and control method thereof
US9910554B2 (en) Assisting graphical user interface design
US9152619B2 (en) System and method for constructing markup language templates and input data structure specifications
US9607591B2 (en) System and method for rendering music
US9141867B1 (en) Determining word segment boundaries
CN107423271B (en) Document generation method and device
US10460020B2 (en) Generating schema-specific DITA specializations during generic schema transformations
WO2017036152A1 (en) Method and device for generating product document
CN104462045B (en) A kind of document processing method and device
Liu et al. A Method on Single Source Publishing for Music in DITA

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16840581

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16840581

Country of ref document: EP

Kind code of ref document: A1