CN104360848A - Flex page converting method and device - Google Patents

Flex page converting method and device Download PDF

Info

Publication number
CN104360848A
CN104360848A CN201410594484.7A CN201410594484A CN104360848A CN 104360848 A CN104360848 A CN 104360848A CN 201410594484 A CN201410594484 A CN 201410594484A CN 104360848 A CN104360848 A CN 104360848A
Authority
CN
China
Prior art keywords
page
label
rule
xsl
original system
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.)
Granted
Application number
CN201410594484.7A
Other languages
Chinese (zh)
Other versions
CN104360848B (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 Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN201410594484.7A priority Critical patent/CN104360848B/en
Publication of CN104360848A publication Critical patent/CN104360848A/en
Application granted granted Critical
Publication of CN104360848B publication Critical patent/CN104360848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The invention provides a Flex page converting method and device. The method comprises the following steps: reading an original system page file; judging whether an original system page is a convertible page or not according to the name of the original system page file; if the original system page is the convertible page, converting the original system page to an intermediate page of a custom tag according to the type of the original system page file; inspecting the intermediate page in the custom tag to obtain the intermediate page passing inspection; converting the intermediate page passing inspection to a Flex page according to the type of the intermediate page file passing inspection. The adoption of the method and the device can effectively improve project developing progress, reduce page developing cost and reduce encoding error risk.

Description

A kind of Flex page method for transformation and device
Technical field
The present invention relates to internet arena, be specifically related to a kind of Flex page method for transformation and device.
Background technology
In financial industry, along with the sustainable growth of banking, the pressure of system server continues to increase, in order to improve the handling capacity of system, banking system generally adopts rich client to apply (Rich Internet Applications, RIA) technology, and current RIA technology is mainly based on the Flex page, how the original system page being converted into the Flex page becomes a problem demanding prompt solution.Current solution is: the scheme adopting system upgrade, original system page new technology is carried out artificial reconstruction, realizes the transformation of the original system page to the rich client Flex page.Although the original system page can be converted into the Flex page by such scheme, whole Flex page conversion process needs a large amount of Flex technology personnel to develop and test, and cost of development is high, and the project cycle is long, and the bit error rate of artificial coding is high.
Summary of the invention
The embodiment of the present invention provides a kind of Flex page method for transformation and device, can effectively improve project development progress, reduces page development cost, reduces code error risk.
Embodiment of the present invention first aspect provides a kind of Flex page method for transformation, can comprise:
Read original system pagefile;
According to the title of described original system pagefile, judge whether the original system page is the convertible page;
If so, then according to the type of described original system pagefile, be the intermediate page of customized label by described original system conversion of page;
The intermediate page of described customized label being checked, obtaining the intermediate page by checking;
According to the type of the intermediate page file by checking, the described intermediate page by checking is converted to the Flex page.
Embodiment of the present invention second aspect provides a kind of Flex page reforming unit, can comprise:
Reading unit, for reading original system pagefile;
First judging unit, for the title according to described original system pagefile, judges whether the original system page is the convertible page;
Described original system conversion of page, for when described first judging unit judged result is for being, according to the type of described original system pagefile, is the intermediate page of customized label by the first converting unit;
Inspection unit, for checking the intermediate page of described customized label, obtains the intermediate page by checking;
Second converting unit, for the type according to the intermediate page file by checking, is converted to the Flex page by the described intermediate page by checking.
Implement the embodiment of the present invention, there is following beneficial effect:
In the embodiment of the present invention, be the intermediate page of customized label by original system conversion of page, the intermediate page of described customized label is checked, again the intermediate page by checking being converted to the Flex page, only having used intermediate page in whole transfer process, not needed too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, present invention also offers intermediate page and check scheme, reduce code error risk.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of Flex page method for transformation schematic flow sheet that the embodiment of the present invention provides;
Fig. 2 is the another kind of Flex page method for transformation schematic flow sheet that the embodiment of the present invention provides;
Fig. 3 is the another kind of Flex page method for transformation schematic flow sheet that the embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of Flex page reforming unit that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides;
Fig. 7 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides;
Fig. 8 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In the embodiment of the present invention, Flex is the technical products of supported RIA develop and field of Adobe company exploitation, can the application of To enterprises level, and the Flex page is a kind of Flex markup language page, the target pages file that can run after being compiled by compilation tool; XSL (Extensible Stylesheet Language) is extendible stylesheet language, a kind of for presenting xml (Extensible Markup Language with readable format, extend markup language) language of data, XSL template is for being intermediate page by original system conversion of page or intermediate page being converted to the Flex page, different XSL templates has different definition rules to different labels and corresponding tag attributes, generally comprise input rule and export rule, being respectively used to mate the different pages.
Fig. 1 is a kind of Flex page method for transformation schematic flow sheet that the embodiment of the present invention provides.As shown in Figure 1, this Flex page method for transformation comprises the steps:
S101, reads original system pagefile.
Wherein, reading original system pagefile calls execution script by conversion script by entrance script and reads, here conversion script is a set of application program write, and entrance script can perform script for windows, and performing script can be CScript script.
S102, according to the title of original system pagefile, judges whether the original system page is the convertible page.
Wherein, each original system pagefile has the page file names corresponding with it, such as, when the suffix of the title of original system pagefile is called .itf and the ingress label of original system pagefile is tran label, then judge that this original system pagefile is the convertible page.
Original system conversion of page, if so, then according to the type of original system pagefile, is the intermediate page of customized label by S103.
Wherein, the original system page can be used for converting Java service page (Java server pages to, JSP) labels page, the intermediate page of customized label is Viw labels page, and the different pages has different label definition rules and tag attributes definition rule.The type of original system pagefile can be divided into input page (the input page) type and export the page (the output page) type, in conversion of page process, the type of different original system pagefiles will use different conversion modules.
S104, checks the intermediate page of customized label, obtains the intermediate page by checking.
Wherein, the intermediate page of customized label is a kind of transitional page, this intermediate page is to generate the Flex page, also provide the definition standard of a kind of customized label and corresponding tag attributes simultaneously, when the Flex page needs to upgrade upgrading, only need to modify in this intermediate page, just can realize upgrading to the renewal of the Flex page, without the need to understanding too much Flex Floor layer Technology, facilitate the further renolation to the Flex page.
S105, according to the type of the intermediate page file by checking, is converted to the Flex page by the intermediate page by checking.
Wherein, can be divided into by the type of the intermediate page file checked and support single-page tag types (table type) and support combination page tag types (tab type), different will use different conversion modules by the type of the intermediate page file checked.
In the embodiment of the present invention, be the intermediate page of customized label by original system conversion of page, the intermediate page of described customized label is checked, again the intermediate page by checking being converted to the Flex page, only having used intermediate page in whole transfer process, not needed too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides intermediate page and checks scheme, reduces code error risk.
Fig. 2 is the another kind of Flex page method for transformation schematic flow sheet that the embodiment of the present invention provides.As shown in Figure 2, this Flex page method for transformation comprises the steps:
S201, reads original system pagefile.
Wherein, reading original system pagefile calls execution script by conversion script by entrance script and reads, here conversion script is a set of application program write, and entrance script can perform script for windows, and performing script can be CScript script.
S202, according to the title of original system pagefile, judges whether the original system page is the convertible page, if so, then performs step S203-step S205.
Wherein, each original system pagefile has the page file names corresponding with it, such as, when the suffix of the title of original system pagefile is called .itf and the ingress label of original system pagefile is tran label, then judge that this original system pagefile is the convertible page.
S203, if original system pagefile is input page type, then obtains XSL input template.
Wherein, original system pagefile is input page (the input page) type, then obtain XSL input template, the original system pagefile of input page (the input page) type can only obtain XSL input template.
S204, judge whether the label definition rule of original system pagefile mates with the label input rule in XSL input template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that original system pagefile is corresponding is corresponding with XSL input template mates.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL input template is only for the treatment of the original system pagefile of input page type, XSL input template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that mate the original system page, such as, the label of the input rule coupling original system page and the definition rule of corresponding tag attributes include but not limited to: tran label, ingress label, it is the entrance of the page, it is the label of the most top layer of the page, being used for identifying whether is an original system pagefile, input label, ranks label, is used for identifying whether separately as a line display or separately as a row display, field label, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the intermediate page of customized label, such as, the definition rule of the label and corresponding tag attributes that export the intermediate page of rule match customized label includes but not limited to: trade label, corresponding with the tran label of the original system page, being used for identifying whether is the intermediate page file of a customized label, trade label comprises initCode tag attributes (the initialization actuating code attribute of the page, call this attribute configuration to have concluded the business initialization when page initialization), viewName tag attributes (Page Name) and Template tag attributes (being used for distinguishing Page Template type) etc., table label, is used for identifying the intermediate page type of customized label, tab label, is used for identifying the intermediate page type of customized label, field label, corresponding with the field label of the original system page, being used for identifying whether is a control.
S205, if all mate, the output rule exporting rule and corresponding tag attributes by the label in XSL input template exports intermediate page result, and utilizes this intermediate page result to generate the intermediate page of customized label.
Wherein, each label and corresponding tag attributes can export an intermediate page result after the match is successful, and this intermediate page result can be character string, and all intermediate page results couple together the intermediate page just defining a customized label.
S206, judge whether label and the corresponding tag attributes of the intermediate page of customized label exist, if all exist, then judge corresponding tag attribute values whether in a span, if, then the intermediate page of customized label being classified as the intermediate page by checking, then can select to perform step S207-step S209 or step S210-step S212.
Wherein, inspection comprises following aspect:
1, whether the intermediate page label of customized label exists, such as, the intermediate page label of customized label includes but not limited to following label: trade label (page entry label), table label (form template page-tag, belong to single-page template), tab label (tab template page label, belong to combination page-tag), tr label (rower label, be used for identifying whether separately as a line display), td label (column label, be used for identifying whether separately as a row display), field label (field label), button label (button label), group label (packet label),
Whether 2, corresponding tag attributes exists, such as, whether the initCode tag attributes that trade label is corresponding, viewName tag attributes, template tag attributes, tab tag attributes, width tag attributes, height tag attributes and browser tag attributes exist, and whether the id tag attributes that field label is corresponding, label tag attributes, dt tag attributes, type tag attributes, format tag attributes, check tag attributes, Onchange tag attributes and Onfocusout tag attributes etc. exist;
3, whether tag attributes span is correct, such as, the span of the type tag attributes that field label is corresponding is following one or more: text (character string input frame-type), combox (drop-down frame-type), checkbox (final election frame-type), radio (single choice frame-type), textarea (input area type), date (date type), dateregion (date interval type), datetime (date-time type), phone (phone input frame-type), hidden (concealed type) and private (self-defined type), the span of the target tag attributes that Button label is corresponding is following one or more: combox (drop-down frame-type), checkbox (final election frame-type), radio (single choice frame-type), textarea (input area type), date (date type), dateregion (date interval type), datetime (date-time type), phone (phone input frame-type), hidden (concealed type) and the self-defined type of private-.
4, whether the subtab of the intermediate page label of customized label can be subtab, and such as, table label and tab label can as the subtabs of trade label, and other label just cannot as the subtab of trade label; Tr label and field label can as the subtabs of table label, and other label just cannot as the subtab of table label;
Whether the tag attributes that 5, must input has value, such as, the showfield tag attributes that field label is corresponding, editable tag attributes, required tag attributes, the disable tag attributes that button label is corresponding is the tag attributes that must input, and the value of these tag attributes can only for being or no two kinds.
S207, if be support single-page tag types by the intermediate page file checked, then obtains XSL single-page template.
Wherein, by check intermediate page file type for support single-page tag types (table type), then obtain XSL single-page template, that supports single-page tag types (table type) can only obtain XSL single-page template by the intermediate page file checked.
S208, judge whether the label input rule in the label definition rule of intermediate page file by checking and XSL single-page template mates, and judge whether mated by the input rule of the definition rule of tag attributes corresponding to the intermediate page file of the inspection tag attributes corresponding with XSL single-page template.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL single-page template is only for the treatment of the intermediate page file by checking supporting single-page type, XSL single-page template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that fit through the intermediate page of inspection, such as, the definition rule of label and corresponding tag attributes that input rule fits through the intermediate page of inspection includes but not limited to: trade label, being used for identifying whether is the intermediate page file of a customized label, tr label, is used for identifying whether to show as a line separately, td label, is used for identifying whether separately as a row display, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the Flex page, such as, the definition rule of the label and corresponding tag attributes that export the rule match Flex page includes but not limited to: vase-view label, corresponding with the trade label of the intermediate page by checking; Vase-GroupTR label, corresponding with tr label; Vase-GroupTD label, corresponding with td label; Vase-TextInput label, Vase-ComboBox label, Vase-TextAre label, Vase-checkBox label and Vase-DateField label are all corresponding with field label.
S209, if all mate, the output rule exporting rule and corresponding tag attributes by the label in XSL single-page template exports Flex page results, and utilizes this Flex page results to generate the Flex page.
Wherein, each label and corresponding tag attributes can export a Flex page results after the match is successful, and this Flex page results can be character string, and all Flex page results couple together and just define a Flex page.
S210, if combine page tag types by the intermediate page file checked for supporting, then obtains XSL combined page face die plate.
Wherein, page tag types (tab type) is combined for supporting by the type of the intermediate page file checked, then obtain XSL combined page face die plate, that supports combination page tag types (tab type) can only obtain XSL combined page face die plate by the intermediate page file checked.
S211, judge whether the label input rule in the label definition rule of intermediate page file by checking and XSL combined page face die plate mates, and judge whether mated by the input rule of the definition rule of tag attributes corresponding to the intermediate page file of the inspection tag attributes corresponding with XSL combined page face die plate.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL combined page face die plate is only for the treatment of the intermediate page file by checking supporting combination page type, XSL single-page template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that fit through the intermediate page of inspection, such as, the definition rule of label and corresponding tag attributes that input rule fits through the intermediate page of inspection includes but not limited to: trade label, being used for identifying whether is the intermediate page file of a customized label, tr label, is used for identifying whether to show as a line separately, td label, is used for identifying whether separately as a row display, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the Flex page, such as, the definition rule of the label and corresponding tag attributes that export the rule match Flex page includes but not limited to: vase-view label, corresponding with the trade label of the intermediate page by checking; Vase-GroupTR label, corresponding with tr label; Vase-GroupTD label, corresponding with td label; Vase-TextInput label, Vase-ComboBox label, Vase-TextAre label, Vase-checkBox label and Vase-DateField label are all corresponding with field label.
S212, if all mate, the output rule exporting rule and corresponding tag attributes by the label in XSL combined page face die plate exports Flex page results, and utilizes this Flex page results to generate the Flex page.
Wherein, each label and corresponding tag attributes can export a Flex page results after the match is successful, and this Flex page results can be character string, and all Flex page results couple together and just define a Flex page.
In the embodiment of the present invention, first be the intermediate page of customized label by original system conversion of page, then the intermediate page of described customized label is checked, finally again the intermediate page by checking is converted to the Flex page, intermediate page has been used in whole transfer process, and the label of intermediate page and attribute are defined, used different XSL conversion modules simultaneously, only need to consider the label of intermediate page and the input and output specification of attribute definition standard and XSL template, and do not need too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides concrete intermediate page and checks scheme, reduce code error risk.
Fig. 3 is the another kind of Flex page method for transformation schematic flow sheet that the embodiment of the present invention provides.As shown in Figure 3, this Flex page method for transformation comprises the steps:
S301, reads original system pagefile.
Wherein, reading original system pagefile calls execution script by conversion script by entrance script and reads, here conversion script is a set of application program write, and entrance script can perform script for windows, and performing script can be CScript script.
S302, according to the title of original system pagefile, judges whether the original system page is the convertible page, if so, then performs step S303-step S305.
Wherein, each original system pagefile has the page file names corresponding with it, such as, when the suffix of the title of original system pagefile is called .itf and the ingress label of original system pagefile is tran label, then judge that this original system pagefile is the convertible page.
S303, if original system pagefile is for exporting page type, then obtains XSL output template.
Wherein, original system pagefile for exporting the page (the input page) type, then obtains XSL output template, and the original system pagefile exporting the page (the input page) type can only obtain XSL output template.
S304, judge whether the label definition rule of original system pagefile mates with the label input rule in XSL output template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that original system pagefile is corresponding is corresponding with XSL output template mates.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL output template is only for the treatment of the original system pagefile exporting page type, XSL output template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that mate the original system page, such as, the label of the input rule coupling original system page and the definition rule of corresponding tag attributes include but not limited to: tran label, ingress label, it is the entrance of the page, it is the label of the most top layer of the page, being used for identifying whether is an original system pagefile, input label, ranks label, is used for identifying whether separately as a line display or separately as a row display, field label, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the intermediate page of customized label, such as, the definition rule of the label and corresponding tag attributes that export the intermediate page of rule match customized label includes but not limited to: trade label, corresponding with the tran label of the original system page, being used for identifying whether is the intermediate page file of a customized label, trade label comprises initCode tag attributes (the initialization actuating code attribute of the page, call this attribute configuration to have concluded the business initialization when page initialization), viewName tag attributes (Page Name) and Template tag attributes (being used for distinguishing Page Template type) etc., table label, is used for identifying the intermediate page type of customized label, tab label, is used for identifying the intermediate page type of customized label, field label, corresponding with the field label of the original system page, being used for identifying whether is a control.
S305, if all mate, the output rule exporting rule and corresponding tag attributes by the label in XSL output template exports intermediate page result, and utilizes this intermediate page result to generate the intermediate page of customized label.
Wherein, each label and corresponding tag attributes can export an intermediate page result after the match is successful, and this intermediate page result can be character string, and all intermediate page results couple together the intermediate page just defining a customized label.
S306, judge whether label and the corresponding tag attributes of the intermediate page of customized label exist, if all exist, then judge corresponding tag attribute values whether in a span, if, then the intermediate page of customized label being classified as the intermediate page by checking, then can select to perform step S307-step S309 or step S310-step S312.
Wherein, inspection comprises following aspect:
1, whether the intermediate page label of customized label exists, such as, the intermediate page label of customized label includes but not limited to following label: trade label (page entry label), table label (form template page-tag, belong to single-page template), tab label (tab template page label, belong to combination page-tag), tr label (rower label, be used for identifying whether separately as a line display), td label (column label, be used for identifying whether separately as a row display), field label (field label), button label (button label), group label (packet label),
Whether 2, corresponding tag attributes exists, such as, whether the initCode tag attributes that trade label is corresponding, viewName tag attributes, template tag attributes, tab tag attributes, width tag attributes, height tag attributes and browser tag attributes exist, and whether the id tag attributes that field label is corresponding, label tag attributes, dt tag attributes, type tag attributes, format tag attributes, check tag attributes, Onchange tag attributes and Onfocusout tag attributes etc. exist;
3, whether tag attributes span is correct, such as, the span of the type tag attributes that field label is corresponding is following one or more: text (character string input frame-type), combox (drop-down frame-type), checkbox (final election frame-type), radio (single choice frame-type), textarea (input area type), date (date type), dateregion (date interval type), datetime (date-time type), phone (phone input frame-type), hidden (concealed type) and private (self-defined type), the span of the target tag attributes that Button label is corresponding is following one or more: combox (drop-down frame-type), checkbox (final election frame-type), radio (single choice frame-type), textarea (input area type), date (date type), dateregion (date interval type), datetime (date-time type), phone (phone input frame-type), hidden (concealed type) and the self-defined type of private-.
4, whether the subtab of the intermediate page label of customized label can be subtab, and such as, table label and tab label can as the subtabs of trade label, and other label just cannot as the subtab of trade label; Tr label and field label can as the subtabs of table label, and other label just cannot as the subtab of table label;
Whether the tag attributes that 5, must input has value, such as, the showfield tag attributes that field label is corresponding, editable tag attributes, required tag attributes, the disable tag attributes that button label is corresponding is the tag attributes that must input, and the value of these tag attributes can only for being or no two kinds.
S307, if be support single-page tag types by the intermediate page file checked, then obtains XSL single-page template.
S308, judge whether the label input rule in the label definition rule of intermediate page file by checking and XSL single-page template mates, and judge whether mated by the input rule of the definition rule of tag attributes corresponding to the intermediate page file of the inspection tag attributes corresponding with XSL single-page template.
S309, if all mate, the output rule exporting rule and corresponding tag attributes by the label in XSL single-page template exports Flex page results, and utilizes this Flex page results to generate the Flex page.
S310, if combine page tag types by the intermediate page file checked for supporting, then obtains XSL combined page face die plate.
S311, judge whether the label input rule in the label definition rule of intermediate page file by checking and XSL combined page face die plate mates, and judge whether mated by the input rule of the definition rule of tag attributes corresponding to the intermediate page file of the inspection tag attributes corresponding with XSL combined page face die plate.
S312, if all mate, the output rule exporting rule and corresponding tag attributes by the label in XSL combined page face die plate exports Flex page results, and utilizes this Flex page results to generate the Flex page.
The step S307-step S312 of the present embodiment see the step S207-step S212 of Fig. 2 embodiment, can be not repeated herein.
In the embodiment of the present invention, first be the intermediate page of customized label by original system conversion of page, then the intermediate page of described customized label is checked, finally again the intermediate page by checking is converted to the Flex page, intermediate page has been used in whole transfer process, and the label of intermediate page and attribute are defined, used different XSL conversion modules simultaneously, only need to consider the label of intermediate page and the input and output specification of attribute definition standard and XSL template, and do not need too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides concrete intermediate page and checks scheme, reduce code error risk.
Fig. 4 is the structural representation of a kind of Flex page reforming unit that the embodiment of the present invention provides.As shown in Figure 4, this Flex page reforming unit can comprise: reading unit 401, first judging unit 402, first converting unit 403, inspection unit 404 and the second converting unit 405.
Reading unit 401, for reading original system pagefile.
Wherein, reading unit 401 read original system pagefile by conversion script by entrance script call perform script read, here conversion script is a set of application program write, and entrance script can perform script for windows, and performing script can be CScript script.
First judging unit 402, for the title according to original system pagefile, judges whether the original system page is the convertible page.
Wherein, each original system pagefile has the page file names corresponding with it, such as, when the suffix of the title of original system pagefile is called .itf and the ingress label of original system pagefile is tran label, then judge that this original system pagefile is the convertible page.
Original system conversion of page, for when the first judging unit 402 judged result is for being, according to the type of original system pagefile, is the intermediate page of customized label by the first converting unit 403.
Wherein, the original system page can be used for converting Java service page (Java server pages to, JSP) labels page, the intermediate page of customized label is Viw labels page, and the different pages has different label definition rules and tag attributes definition rule.The type of original system pagefile can be divided into input page (the input page) type and export the page (the output page) type, in conversion of page process, the type of different original system pagefiles will use different conversion modules.
Inspection unit 404, for checking the intermediate page of customized label, obtains the intermediate page by checking.
Wherein, the intermediate page of customized label is a kind of transitional page, this intermediate page is to generate the Flex page, also provide the definition standard of a kind of customized label and corresponding tag attributes simultaneously, when the Flex page needs to upgrade upgrading, only need to modify in this intermediate page, just can realize upgrading to the renewal of the Flex page, without the need to understanding too much Flex Floor layer Technology, facilitate the further renolation to the Flex page.
Second converting unit 405, for the type according to the intermediate page file by checking, is converted to the Flex page by the intermediate page by checking.
Wherein, can be divided into by the type of the intermediate page file checked and support single-page tag types (table type) and support combination page tag types (tab type), different will use different conversion modules by the type of the intermediate page file checked.
In the embodiment of the present invention, be the intermediate page of customized label by original system conversion of page, the intermediate page of described customized label is checked, again the intermediate page by checking being converted to the Flex page, only having used intermediate page in whole transfer process, not needed too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides intermediate page and checks scheme, reduces code error risk.
Fig. 5 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides.As shown in Figure 5, this Flex page reforming unit can comprise: reading unit 401, first judging unit 402, first converting unit 403, inspection unit 404 and the second converting unit 405.Wherein, the first converting unit 403 can comprise the first subelement 4301, second subelement 4302 and the 3rd subelement 4303.
Reading unit 401, for reading original system pagefile.
First judging unit 402, for the title according to original system pagefile, judges whether the original system page is the convertible page.
First converting unit 403, comprises the first subelement 4301, second subelement 4302 and the 3rd subelement 4303.
First subelement 4301, for when the first judging unit 402 judged result is for being, if original system pagefile is input page type, obtains XSL input template.
Wherein, original system pagefile is input page (the input page) type, then obtain XSL input template, the original system pagefile of input page (the input page) type can only obtain XSL input template.
Second subelement 4302, for judging whether the label definition rule of original system pagefile mates with the label input rule in XSL input template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that original system pagefile is corresponding is corresponding with XSL input template mates.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL input template is only for the treatment of the original system pagefile of input page type, XSL input template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that mate the original system page, such as, the label of the input rule coupling original system page and the definition rule of corresponding tag attributes include but not limited to: tran label, ingress label, it is the entrance of the page, it is the label of the most top layer of the page, being used for identifying whether is an original system pagefile, input label, ranks label, is used for identifying whether separately as a line display or separately as a row display, field label, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the intermediate page of customized label, such as, the definition rule of the label and corresponding tag attributes that export the intermediate page of rule match customized label includes but not limited to: trade label, corresponding with the tran label of the original system page, being used for identifying whether is the intermediate page file of a customized label, trade label comprises initCode tag attributes (the initialization actuating code attribute of the page, call this attribute configuration to have concluded the business initialization when page initialization), viewName tag attributes (Page Name) and Template tag attributes (being used for distinguishing Page Template type) etc., table label, is used for identifying the intermediate page type of customized label, tab label, is used for identifying the intermediate page type of customized label, field label, corresponding with the field label of the original system page, being used for identifying whether is a control.
3rd subelement 4303, for when the second subelement 4302 judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in XSL input template exports intermediate page result, and utilizes this intermediate page result to generate the intermediate page of customized label.
Wherein, each label and corresponding tag attributes can export an intermediate page result after the match is successful, and this intermediate page result can be character string, and all intermediate page results couple together the intermediate page just defining a customized label.
Inspection unit 404, for checking the intermediate page of customized label, obtains the intermediate page by checking.
Second converting unit 405, for the type according to the intermediate page file by checking, is converted to the Flex page by the intermediate page by checking.
Reading unit 401, first judging unit 402 in the present embodiment, inspection unit 404 and the second converting unit 405 see reading unit 401, first judging unit 402 of Fig. 4, inspection unit 404 and the second converting unit 405, can be not repeated herein.
In the embodiment of the present invention, first be the intermediate page of customized label by original system conversion of page, then the intermediate page of described customized label is checked, finally again the intermediate page by checking is converted to the Flex page, intermediate page has been used in whole transfer process, and the label of intermediate page and attribute are defined, used different XSL conversion modules simultaneously, only need to consider the label of intermediate page and the input and output specification of attribute definition standard and XSL template, and do not need too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides concrete intermediate page and checks scheme, reduce code error risk.
Fig. 6 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides.As shown in Figure 6, this Flex page reforming unit can comprise: reading unit 401, first judging unit 402, first converting unit 403, inspection unit 404 and the second converting unit 405.Wherein, the first converting unit 403 can comprise the 4th subelement 4304, the 5th subelement 4305 and the 6th subelement 4306.
Reading unit 401, for reading original system pagefile.
First judging unit 402, for the title according to original system pagefile, judges whether the original system page is the convertible page.
First converting unit 403, comprises the 4th subelement 4304, the 5th subelement 4305 and the 6th subelement 4306.
4th subelement 4304, for when the first judging unit 402 judged result is for being, if original system pagefile is for exporting page type, then obtains XSL output template.
Wherein, original system pagefile for exporting the page (the input page) type, then obtains XSL output template, and the original system pagefile exporting the page (the input page) type can only obtain XSL output template.
5th subelement 4305, for judging whether the label definition rule of original system pagefile mates with the label input rule in XSL output template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that original system pagefile is corresponding is corresponding with XSL output template mates.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL output template is only for the treatment of the original system pagefile exporting page type, XSL output template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that mate the original system page, such as, the label of the input rule coupling original system page and the definition rule of corresponding tag attributes include but not limited to: tran label, ingress label, it is the entrance of the page, it is the label of the most top layer of the page, being used for identifying whether is an original system pagefile, input label, ranks label, is used for identifying whether separately as a line display or separately as a row display, field label, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the intermediate page of customized label, such as, the definition rule of the label and corresponding tag attributes that export the intermediate page of rule match customized label includes but not limited to: trade label, corresponding with the tran label of the original system page, being used for identifying whether is the intermediate page file of a customized label, trade label comprises initCode tag attributes (the initialization actuating code attribute of the page, call this attribute configuration to have concluded the business initialization when page initialization), viewName tag attributes (Page Name) and Template tag attributes (being used for distinguishing Page Template type) etc., table label, is used for identifying the intermediate page type of customized label, tab label, is used for identifying the intermediate page type of customized label, field label, corresponding with the field label of the original system page, being used for identifying whether is a control.
6th subelement 4306, for when the 5th subelement 4305 judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in XSL output template exports intermediate page result, and utilizes this intermediate page result to generate the intermediate page of customized label.
Wherein, each label and corresponding tag attributes can export an intermediate page result after the match is successful, and this intermediate page result can be character string, and all intermediate page results couple together the intermediate page just defining a customized label.
Inspection unit 404, for checking the intermediate page of customized label, obtains the intermediate page by checking.
Second converting unit 405, for the type according to the intermediate page file by checking, is converted to the Flex page by the intermediate page by checking.
Reading unit 401, first judging unit 402 in the present embodiment, inspection unit 404 and the second converting unit 405 see reading unit 401, first judging unit 402 of Fig. 4, inspection unit 404 and the second converting unit 405, can be not repeated herein.
In the embodiment of the present invention, first be the intermediate page of customized label by original system conversion of page, then the intermediate page of described customized label is checked, finally again the intermediate page by checking is converted to the Flex page, intermediate page has been used in whole transfer process, and the label of intermediate page and attribute are defined, used different XSL conversion modules simultaneously, only need to consider the label of intermediate page and the input and output specification of attribute definition standard and XSL template, and do not need too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides concrete intermediate page and checks scheme, reduce code error risk.
Fig. 7 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides.As shown in Figure 7, this Flex page reforming unit can comprise: reading unit 401, first judging unit 402, first converting unit 403, inspection unit 404 and the second converting unit 405.Wherein, the second converting unit 405 can comprise the 7th subelement 4507, the 8th subelement 4508 and the 9th subelement 4509.
Reading unit 401, for reading original system pagefile.
First judging unit 402, for the title according to original system pagefile, judges whether the original system page is the convertible page.
Original system conversion of page, for when the first judging unit 402 judged result is for being, according to the type of original system pagefile, is the intermediate page of customized label by the first converting unit 403.
Inspection unit 404, for checking the intermediate page of customized label, obtains the intermediate page by checking.
Second converting unit 405 comprises the 7th subelement 4507, the 8th subelement 4508 and the 9th subelement 4509.
7th subelement 4507, for when the intermediate page file by checking is for support single-page tag types, obtains XSL single-page template.
Wherein, by check intermediate page file type for support single-page tag types (table type), then obtain XSL single-page template, that supports single-page tag types (table type) can only obtain XSL single-page template by the intermediate page file checked.
8th subelement 4508, for judging whether the label input rule in the label definition rule of intermediate page file by checking and XSL single-page template mates, and judge whether mated by the input rule of the definition rule of tag attributes corresponding to the intermediate page file of the inspection tag attributes corresponding with XSL single-page template.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL single-page template is only for the treatment of the intermediate page file by checking supporting single-page type, XSL single-page template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that fit through the intermediate page of inspection, such as, the definition rule of label and corresponding tag attributes that input rule fits through the intermediate page of inspection includes but not limited to: trade label, being used for identifying whether is the intermediate page file of a customized label, tr label, is used for identifying whether to show as a line separately, td label, is used for identifying whether separately as a row display, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the Flex page, such as, the definition rule of the label and corresponding tag attributes that export the rule match Flex page includes but not limited to: vase-view label, corresponding with the trade label of the intermediate page by checking; Vase-GroupTR label, corresponding with tr label; Vase-GroupTD label, corresponding with td label; Vase-TextInput label, Vase-ComboBox label, Vase-TextAre label, Vase-checkBox label and Vase-DateField label are all corresponding with field label.
9th subelement 4509, for when the 8th subelement 4508 judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in XSL single-page template exports Flex page results, and utilizes this Flex page results to generate the Flex page.
Wherein, each label and corresponding tag attributes can export a Flex page results after the match is successful, and this Flex page results can be character string, and all Flex page results couple together and just define a Flex page.
Reading unit 401, first judging unit 402, first converting unit 403 in the present embodiment and inspection unit 404 see reading unit 401, first judging unit 402, first converting unit 403 of Fig. 4 and inspection unit 404, can be not repeated herein.
In the embodiment of the present invention, first be the intermediate page of customized label by original system conversion of page, then the intermediate page of described customized label is checked, finally again the intermediate page by checking is converted to the Flex page, intermediate page has been used in whole transfer process, and the label of intermediate page and attribute are defined, used different XSL conversion modules simultaneously, only need to consider the label of intermediate page and the input and output specification of attribute definition standard and XSL template, and do not need too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides concrete intermediate page and checks scheme, reduce code error risk.
Fig. 8 is the structural representation of the another kind of Flex page reforming unit that the embodiment of the present invention provides.As shown in Figure 8, this Flex page reforming unit can comprise: reading unit 401, first judging unit 402, first converting unit 403, inspection unit 404 and the second converting unit 405.Wherein, the second converting unit 405 can comprise the tenth subelement the 4510, the 11 subelement the 4511 and the 12 subelement 4512.
Reading unit 401, for reading original system pagefile.
First judging unit 402, for the title according to original system pagefile, judges whether the original system page is the convertible page.
Original system conversion of page, for when the first judging unit 402 judged result is for being, according to the type of original system pagefile, is the intermediate page of customized label by the first converting unit 403.
Inspection unit 404, for checking the intermediate page of customized label, obtains the intermediate page by checking.
Second converting unit 405 comprises the tenth subelement the 4510, the 11 subelement the 4511 and the 12 subelement 4512.
Tenth subelement 4510, for when the intermediate page file by checking is for supporting to combine page tag types, obtains XSL combined page face die plate.
Wherein, page tag types (tab type) is combined for supporting by the type of the intermediate page file checked, then obtain XSL combined page face die plate, that supports combination page tag types (tab type) can only obtain XSL combined page face die plate by the intermediate page file checked.
11 subelement 4511, for judging whether the label input rule in the label definition rule of intermediate page file by checking and described XSL combined page face die plate mates, and judge whether mated by the input rule of the definition rule of tag attributes corresponding to the intermediate page file of the inspection tag attributes corresponding with XSL combined page face die plate.
Wherein, label here comprises father's label and subtab, and father's label can have multiple available subtab, and such as, trade label in intermediate page just has table subtab and tab subtab; Father's label also can have an available subtab, and such as, field label in intermediate page just only has button subtab; Some label does not then have subtab, such as, in intermediate page button label, tr label and td label.Be not that each label has corresponding tag attributes, some labels do not have tag attributes, and such as, line label in intermediate page does not just have tag attributes.XSL combined page face die plate is only for the treatment of the intermediate page file by checking supporting combination page type, XSL single-page template comprises a set of input rule about label and corresponding tag attributes and a set of output rule about label and corresponding tag attributes, input rule is for the definition rule of the label and corresponding tag attributes that fit through the intermediate page of inspection, such as, the definition rule of label and corresponding tag attributes that input rule fits through the intermediate page of inspection includes but not limited to: trade label, being used for identifying whether is the intermediate page file of a customized label, tr label, is used for identifying whether to show as a line separately, td label, is used for identifying whether separately as a row display, field label, being used for identifying whether is a control.Export the definition rule of rule for the label and corresponding tag attributes that mate the Flex page, such as, the definition rule of the label and corresponding tag attributes that export the rule match Flex page includes but not limited to: vase-view label, corresponding with the trade label of the intermediate page by checking; Vase-GroupTR label, corresponding with tr label; Vase-GroupTD label, corresponding with td label; Vase-TextInput label, Vase-ComboBox label, Vase-TextAre label, Vase-checkBox label and Vase-DateField label are all corresponding with field label.
12 subelement 4512, for when the 11 subelement 4511 judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in XSL combined page face die plate exports Flex page results, and utilizes this Flex page results to generate the Flex page.
Wherein, each label and corresponding tag attributes can export a Flex page results after the match is successful, and this Flex page results can be character string, and all Flex page results couple together and just define a Flex page.
Reading unit 401, first judging unit 402, first converting unit 403 in the present embodiment and inspection unit 404 see reading unit 401, first judging unit 402, first converting unit 403 of Fig. 4 and inspection unit 404, can be not repeated herein.
In the embodiment of the present invention, first be the intermediate page of customized label by original system conversion of page, then the intermediate page of described customized label is checked, finally again the intermediate page by checking is converted to the Flex page, intermediate page has been used in whole transfer process, and the label of intermediate page and attribute are defined, used different XSL conversion modules simultaneously, only need to consider the label of intermediate page and the input and output specification of attribute definition standard and XSL template, and do not need too much to understand Flex Floor layer Technology, can effectively improve project development progress, reduce page development cost, the embodiment of the present invention additionally provides concrete intermediate page and checks scheme, reduce code error risk.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is that the hardware that can carry out instruction relevant by program has come, this program can be stored in a computer-readable recording medium, storage medium can comprise: flash disk, ROM (read-only memory) (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc.
Above a kind of Flex page method for transformation disclosed in the embodiment of the present invention and device are described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (12)

1. a Flex page method for transformation, is characterized in that, comprising:
Read original system pagefile;
According to the title of described original system pagefile, judge whether the original system page is the convertible page;
If so, then according to the type of described original system pagefile, be the intermediate page of customized label by described original system conversion of page;
The intermediate page of described customized label being checked, obtaining the intermediate page by checking;
According to the type of the intermediate page file by checking, the described intermediate page by checking is converted to the Flex page.
2. method according to claim 1, is characterized in that, according to the type of described original system pagefile, the intermediate page being customized label by described original system conversion of page comprises:
If described original system pagefile is input page type, then obtain XSL input template;
Judge whether the label definition rule of described original system pagefile mates with the label input rule in described XSL input template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that described original system pagefile is corresponding is corresponding with described XSL input template mates;
If all mate, then the output rule exporting the tag attributes of rule and correspondence by the label in described XSL input template exports intermediate page result, and utilizes described intermediate page result to generate the intermediate page of customized label.
3. method according to claim 1, is characterized in that, according to the type of described original system pagefile, the intermediate page being customized label by described original system conversion of page comprises:
If described original system pagefile for exporting page type, then obtains XSL output template;
Judge whether the label definition rule of described original system pagefile mates with the label input rule in described XSL output template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that described original system pagefile is corresponding is corresponding with described XSL output template mates;
If all mate, then the output rule exporting the tag attributes of rule and correspondence by the label in described XSL output template exports intermediate page result, and utilizes described intermediate page result to generate the intermediate page of customized label.
4. method according to claim 1, is characterized in that, checks the intermediate page of described customized label, and the intermediate page obtained by checking comprises:
Judge whether label and the corresponding tag attributes of the intermediate page of described customized label exist;
If all exist, then judge corresponding tag attribute values whether in a span;
If so, then the intermediate page of described customized label is classified as the intermediate page by checking.
5. method according to claim 1, is characterized in that, according to the type of the intermediate page file by checking, the described intermediate page by checking being converted to the Flex page and comprising:
If the described intermediate page file by checking is for supporting single-page tag types, then obtain XSL single-page template;
Whether mated by the label input rule in the label definition rule of the intermediate page file of inspection and described XSL single-page template described in judging, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that the described intermediate page file passing through to check is corresponding is corresponding with described XSL single-page template mates;
If all mate, then the output rule exporting the tag attributes of rule and correspondence by the label in described XSL single-page template exports Flex page results, and utilizes described Flex page results to generate the Flex page.
6. method according to claim 1, is characterized in that, according to the type of the intermediate page file by checking, the described intermediate page by checking being converted to the Flex page and comprising:
If the described intermediate page file by checking for supporting combination page tag types, then obtains XSL combined page face die plate;
Whether mated by the label input rule in the label definition rule of the intermediate page file of inspection and described XSL combined page face die plate described in judging, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that the described intermediate page file passing through to check is corresponding is corresponding with described XSL combined page face die plate mates;
If all mate, then the output rule exporting the tag attributes of rule and correspondence by the label in described XSL combined page face die plate exports Flex page results, and utilizes described Flex page results to generate the Flex page.
7. a Flex page reforming unit, is characterized in that, comprising:
Reading unit, for reading original system pagefile;
First judging unit, for the title according to described original system pagefile, judges whether the original system page is the convertible page;
Described original system conversion of page, for when described first judging unit judged result is for being, according to the type of described original system pagefile, is the intermediate page of customized label by the first converting unit;
Inspection unit, for checking the intermediate page of described customized label, obtains the intermediate page by checking;
Second converting unit, for the type according to the intermediate page file by checking, is converted to the Flex page by the described intermediate page by checking.
8. device according to claim 7, is characterized in that, described first converting unit comprises:
First subelement, for when described first judging unit judged result is for being, if described original system pagefile is input page type, obtains XSL input template;
Second subelement, for judging the label definition rule of described original system pagefile and whether mating with the label input rule in described XSL input template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that described original system pagefile is corresponding is corresponding with described XSL input template mates;
3rd subelement, for when described second subelement judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in described XSL input template exports intermediate page result, and utilizes described intermediate page result to generate the intermediate page of customized label.
9. device according to claim 7, is characterized in that, described first converting unit comprises:
4th subelement, for when described first judging unit judged result is for being, if described original system pagefile is for exporting page type, obtains XSL output template;
5th subelement, for judging the label definition rule of described original system pagefile and whether mating with the label input rule in described XSL output template, and judge whether the input rule of the tag attributes that the definition rule of the tag attributes that described original system pagefile is corresponding is corresponding with described XSL output template mates;
6th subelement, for when described 5th subelement judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in described XSL output template exports intermediate page result, and utilizes described intermediate page result to generate the intermediate page of customized label.
10. device according to claim 7, it is characterized in that, whether described inspection unit exists specifically for the label and corresponding tag attributes judging the intermediate page of described customized label, if when all existing, then judge corresponding tag attribute values whether in a span, if so, the intermediate page of described customized label is classified as the intermediate page by checking.
11. devices according to claim 7, is characterized in that, described second converting unit comprises:
7th subelement, for when the intermediate page file by checking is for support single-page tag types, obtains XSL single-page template;
8th subelement, for judging whether the label input rule in the label definition rule of the described intermediate page file by checking and described XSL single-page template mates, and judge whether the input rule of the tag attributes that the definition rule of the described tag attributes corresponding by the intermediate page file checked is corresponding with described XSL single-page template mates;
9th subelement, for when described 8th subelement judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in described XSL single-page template exports Flex page results, and utilizes described Flex page results to generate the Flex page.
12. devices according to claim 7, is characterized in that, described second converting unit comprises:
Tenth subelement, for when the intermediate page file by checking is for supporting to combine page tag types, obtains XSL combined page face die plate;
11 subelement, for judging whether the label input rule in the label definition rule of the described intermediate page file by checking and described XSL combined page face die plate mates, and judge whether the input rule of the tag attributes that the definition rule of the described tag attributes corresponding by the intermediate page file checked is corresponding with described XSL combined page face die plate mates;
12 subelement, for when described 11 subelement judged result is for all mating, the output rule exporting rule and corresponding tag attributes by the label in described XSL combined page face die plate exports Flex page results, and utilizes described Flex page results to generate the Flex page.
CN201410594484.7A 2014-10-29 2014-10-29 A kind of flex page conversion method and device Active CN104360848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410594484.7A CN104360848B (en) 2014-10-29 2014-10-29 A kind of flex page conversion method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410594484.7A CN104360848B (en) 2014-10-29 2014-10-29 A kind of flex page conversion method and device

Publications (2)

Publication Number Publication Date
CN104360848A true CN104360848A (en) 2015-02-18
CN104360848B CN104360848B (en) 2018-09-04

Family

ID=52528112

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410594484.7A Active CN104360848B (en) 2014-10-29 2014-10-29 A kind of flex page conversion method and device

Country Status (1)

Country Link
CN (1) CN104360848B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376068A (en) * 2016-11-26 2018-08-07 深圳壹账通智能科技有限公司 The conversion method and conversion equipment of Bean page assembly
CN111045705A (en) * 2019-11-23 2020-04-21 方正株式(武汉)科技开发有限公司 Method and system for automatically upgrading JSP (Java Server Page) page, server and medium
CN111259293A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Content data generation method and device, electronic equipment and computer readable medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198577A1 (en) * 2004-03-05 2005-09-08 International Business Machines Corporation Reducing the run-time cost of incorporating custom tags in a server page
CN1773508A (en) * 2005-11-15 2006-05-17 李利鹏 Method for converting source file to target web document
CN101639836A (en) * 2008-07-29 2010-02-03 国际商业机器公司 Data processing device and data processing method
US20110004657A1 (en) * 2009-07-01 2011-01-06 International Business Machines Corporation Method, Apparatus And Computer Program Product For Processing Responses To A Web Page
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
CN102262684A (en) * 2011-08-30 2011-11-30 深圳市五巨科技有限公司 Method and device for generating webpage page of mobile terminal
CN102662984A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 HTML(hypertext markup language)-based multi-platform message handling method
CN102799592A (en) * 2011-05-26 2012-11-28 腾讯科技(深圳)有限公司 Parsing method and system of rich text document
CN103136238A (en) * 2011-11-28 2013-06-05 百度在线网络技术(北京)有限公司 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050198577A1 (en) * 2004-03-05 2005-09-08 International Business Machines Corporation Reducing the run-time cost of incorporating custom tags in a server page
CN1773508A (en) * 2005-11-15 2006-05-17 李利鹏 Method for converting source file to target web document
CN101639836A (en) * 2008-07-29 2010-02-03 国际商业机器公司 Data processing device and data processing method
US20110004657A1 (en) * 2009-07-01 2011-01-06 International Business Machines Corporation Method, Apparatus And Computer Program Product For Processing Responses To A Web Page
CN102163233A (en) * 2011-04-18 2011-08-24 北京神州数码思特奇信息技术股份有限公司 Method and system for converting webpage markup language format
CN102799592A (en) * 2011-05-26 2012-11-28 腾讯科技(深圳)有限公司 Parsing method and system of rich text document
CN102262684A (en) * 2011-08-30 2011-11-30 深圳市五巨科技有限公司 Method and device for generating webpage page of mobile terminal
CN103136238A (en) * 2011-11-28 2013-06-05 百度在线网络技术(北京)有限公司 Method and server of processing page interactive elements at time of converting web page into wireless application protocol (WAP) page
CN102662984A (en) * 2012-03-14 2012-09-12 南京新与力文化传播有限公司 HTML(hypertext markup language)-based multi-platform message handling method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108376068A (en) * 2016-11-26 2018-08-07 深圳壹账通智能科技有限公司 The conversion method and conversion equipment of Bean page assembly
CN111259293A (en) * 2018-12-03 2020-06-09 阿里巴巴集团控股有限公司 Content data generation method and device, electronic equipment and computer readable medium
CN111259293B (en) * 2018-12-03 2023-04-28 阿里巴巴集团控股有限公司 Content data generation method and device, electronic equipment and computer readable medium
CN111045705A (en) * 2019-11-23 2020-04-21 方正株式(武汉)科技开发有限公司 Method and system for automatically upgrading JSP (Java Server Page) page, server and medium

Also Published As

Publication number Publication date
CN104360848B (en) 2018-09-04

Similar Documents

Publication Publication Date Title
CN104461484B (en) The implementation method and device of front-end template
US6823495B1 (en) Mapping tool graphical user interface
CN103646016A (en) Implementation method of user-defined financial statement and server
CN110244936B (en) Method and device for supporting VISIO flow chart to automatically import DCS algorithm configuration software
BRPI0400362A (en) Method and system for converting a schema-based hierarchical data structure to a flat data structure
CN103279846A (en) Project acceptance method and system based on BIM model
CN101859295B (en) System and method for converting simplified Chinese character/word and traditional Chinese character/word with labels and prompts
CN103544024A (en) Method and system for generating browser page and terminal device
CN104360848A (en) Flex page converting method and device
US20120124066A1 (en) Secs communication device and secs communication method thereof
CN102262684A (en) Method and device for generating webpage page of mobile terminal
CN106294480A (en) A kind of file layout change-over method, device and examination question import system
CN113010473B (en) Method and equipment for editing YAML file
CN106777404A (en) Converting system and conversion method from LaTeX form to XML format
CN111680804B (en) Method, equipment and computer readable medium for generating operation checking work ticket
CN113360139A (en) Integration method and device of front-end frame, electronic equipment and storage medium
CN107864073B (en) Method and device for batch sending of SWIFT messages
CN108536715B (en) Preview page generation method, device, equipment and storage medium
CN112698825B (en) Programming building block conversion method, device, processing equipment and storage medium
CN101887364B (en) Method and device for generating help file
CN113239670A (en) Method and device for uploading service template, computer equipment and storage medium
CN112527278A (en) Smart form generating and issuing method, device, terminal and storage medium
CN112650492A (en) Rendering method, system and related device of Web page
CN112651214A (en) Method for converting data table plaintext into binary ciphertext convenient for program to read
CN111125330A (en) Intelligent question-answering method, device and equipment based on man-machine conversation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant