CN104360848B - A kind of flex page conversion method and device - Google Patents
A kind of flex page conversion method and device Download PDFInfo
- Publication number
- CN104360848B CN104360848B CN201410594484.7A CN201410594484A CN104360848B CN 104360848 B CN104360848 B CN 104360848B CN 201410594484 A CN201410594484 A CN 201410594484A CN 104360848 B CN104360848 B CN 104360848B
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
A kind of flex page conversion method and device, this method are:Read original system page file;According to the title of the original system page file, judge whether the original system page is the convertible page;If so, according to the type of the original system page file, by the intermediate page that original system conversion of page is customized label;The intermediate page of the customized label is checked, the intermediate page by checking is obtained;According to the type of the intermediate page file by inspection, the Flex pages will be converted to by the intermediate page of inspection.Using the present invention, project development progress can be effectively improved, reduces page development cost, reduces code error risk.
Description
Technical field
The present invention relates to internet arenas, and in particular to a kind of flex page conversion method and device.
Background technology
In financial industry, 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 use rich client to apply (Rich Internet Applications, RIA) skill
Art, and current RIA technologies are based primarily upon the Flex pages, how to convert the original system page to the Flex pages becomes one urgently
It solves the problems, such as.Current solution is:Using the scheme of system upgrade, the original system page is manually weighed with new technology
Structure realizes transformation of the original system page to the rich client Flex pages.Although said program can convert the original system page to
The Flex pages, but entire Flex page conversion processes need a large amount of Flex technology personnel to develop and test, development cost
Height, and the project cycle is long, and the bit error rate artificially encoded is high.
Invention content
The embodiment of the present invention provides a kind of flex page conversion method and device, can effectively improve project development into
Degree reduces page development cost, reduces code error risk.
First aspect of the embodiment of the present invention provides a kind of flex page conversion method, it may include:
Read original system page file;
According to the title of the original system page file, judge whether the original system page is the convertible page;
It is customized label by the original system conversion of page if so, according to the type of the original system page file
Intermediate page;
The intermediate page of the customized label is checked, the intermediate page by checking is obtained;
According to the type of the intermediate page file by inspection, Flex pages is converted to by the intermediate page of inspection by described
Face.
Second aspect of the embodiment of the present invention provides a kind of Flex pages reforming unit, it may include:
Reading unit, for reading original system page file;
First judging unit, for according to the title of the original system page file, judge the original system page whether be can
Conversion page;
First converting unit, when for being in the first judging unit judging result, according to the original system page
The type of file, by the intermediate page that the original system conversion of page is customized label;
Inspection unit is checked for the intermediate page to the customized label, obtains the intermediate page by checking
Face;
Second converting unit, for the type according to the intermediate page file by inspection, by described by inspection
Between conversion of page be the Flex pages.
Implement the embodiment of the present invention, has the advantages that:
In the embodiment of the present invention, by the intermediate page that original system conversion of page is customized label, to the self-defined mark
The intermediate page of label is checked, then will be converted to the Flex pages by the intermediate page of inspection, is only used in entire transfer process
Intermediate page has been arrived, Flex Floor layer Technologies need not excessively have been understood, project development progress can be effectively improved, has reduced the page
Development cost, the present invention also provides intermediate pages to check scheme, reduces code error risk.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flex page conversion method flow diagram provided in an embodiment of the present invention;
Fig. 2 is another flex page conversion method flow diagram provided in an embodiment of the present invention;
Fig. 3 is another flex page conversion method flow diagram provided in an embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of Flex pages reforming unit provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
In the embodiment of the present invention, Flex is the technical products for supporting RIA to develop and dispose of Adobe companies exploitation, can
With the application towards enterprise-level, the Flex pages are a kind of Flex markup language pages, can be run after being compiled by compilation tool
Target pages file;XSL (Extensible Stylesheet Language) is extendible stylesheet language, is that one kind is used for
The language of xml (Extensible Markup Language, extensible markup language) data, XSL moulds are presented with readable format
Plate is used to be intermediate page by original system conversion of page or intermediate page is converted to the Flex pages, and different XSL templates are not to
Same label and corresponding tag attributes has different definition rules, generally comprises input rule and output rule, is respectively used to
Match the different pages.
Fig. 1 is a kind of flex page conversion method flow diagram provided in an embodiment of the present invention.As shown in Figure 1, should
Flex page conversion method includes the following steps:
S101 reads original system page file.
Wherein, read original system page file calls perform script to read by conversion script by entrance script,
Here conversion script is a set of application program write, and entrance script can be that windows can perform script, perform script
Can be CScript scripts.
S102 judges whether the original system page is the convertible page according to the title of original system page file.
Wherein, each original system page file has corresponding page file names, for example, working as the original system page
When the entitled .itf of suffix of the title of file and the ingress label of original system page file are tran labels, then the original system is judged
Page file is the convertible page.
Original system conversion of page is in customized label if so, according to the type of original system page file by S103
Between the page.
Wherein, the original system page can be used to be converted into Java service pages (Java server pages, JSP)
The intermediate page of labels page, customized label is Viw labels pages, and the different pages has different tag definition rules and mark
Sign attribute definition rule.The type of original system page file can be divided into input page (the input pages) type and the output page
(the output pages) type, during conversion of page, the type of different original system page files will use different conversions
Template.
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, which is to generate Flex pages
Face, while a kind of definition standard of customized label and corresponding tag attributes is also provided, when the Flex pages need more new liter
When grade, it is only necessary to modify in the intermediate page, so that it may excessive without understanding to realize that the update to the Flex pages upgrades
Flex Floor layer Technologies, facilitate the further renolation to the Flex pages.
S105 will be converted to Flex according to the type of the intermediate page file by inspection by the intermediate page of inspection
The page.
Wherein, it can be divided by the type of the intermediate page file of inspection and support single-page tag types (table types)
With support the combination page tag types (tab types), the types of the different intermediate page files by inspection to use different
Conversion module.
In the embodiment of the present invention, by the intermediate page that original system conversion of page is customized label, to the self-defined mark
The intermediate page of label is checked, then will be converted to the Flex pages by the intermediate page of inspection, is only used in entire transfer process
Intermediate page has been arrived, Flex Floor layer Technologies need not excessively have been understood, project development progress can be effectively improved, has reduced the page
Development cost, the embodiment of the present invention additionally provide intermediate page and check scheme, reduce code error risk.
Fig. 2 is another flex page conversion method flow diagram provided in an embodiment of the present invention.As shown in Fig. 2, should
Flex page conversion method includes the following steps:
S201 reads original system page file.
Wherein, read original system page file calls perform script to read by conversion script by entrance script,
Here conversion script is a set of application program write, and entrance script can be that windows can perform script, perform script
Can be CScript scripts.
S202 judges whether the original system page is the convertible page according to the title of original system page file, if so,
Execute step S203- steps S205.
Wherein, each original system page file has corresponding page file names, for example, working as the original system page
When the entitled .itf of suffix of the title of file and the ingress label of original system page file are tran labels, then the original system is judged
Page file is the convertible page.
S203 obtains XSL input templates if original system page file is input page type.
Wherein, original system page file is input page (the input pages) type, then obtains XSL input templates, incoming page
The original system page file of face (the input pages) type can only obtain XSL input templates.
S204 judges that the tag definition rule of original system page file is with the label input rule in XSL input templates
No matching, and judge the definition rule of the corresponding tag attributes of original system page file mark corresponding with XSL input templates
Whether the input rule of label attribute matches.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL input templates are served only for processing input page type
Original system page file, XSL input templates include a set of input rule and a set of pass about label and corresponding tag attributes
In the output rule of label and corresponding tag attributes, input rule is for matching the label of the original system page and corresponding label
The definition rule of attribute, for example, the definition rule packet of the label and corresponding tag attributes of the input rule matching original system page
It includes but is not limited to:Tran labels, ingress label are the entrances of the page, are the labels of page top, for identifying whether it is one
A original system page file;Input labels, ranks label, for identifying whether to show separately as a line or separately as one
Row display;Field labels, field label, for identifying whether it is a control.Output rule is for matching customized label
The definition rule of the label of intermediate page and corresponding tag attributes, for example, the intermediate page of output rule match customized label
The definition rule of the label in face and corresponding tag attributes includes but not limited to:Trade labels are marked with the tran of the original system page
Label correspond to, for identify whether be a customized label intermediate page file, trade labels include initCode label categories
Property (the initialization actuating code attribute of the page, called when the page initializes the attribute configuration transaction complete initialization),
ViewName tag attributes (Page Name) and Template tag attributes (for distinguishing Page Template type) etc.;Table is marked
Label, for identifying the intermediate page type of customized label;Tab labels, for identifying the intermediate page type of customized label;
Field labels, it is corresponding with the field labels of the original system page, for identifying whether it is a control.
S205, if matching, by the output rule of label output rule and corresponding tag attributes in XSL input templates
Intermediate page is exported as a result, and utilizing the intermediate page of intermediate page result generation customized label.
Wherein, an intermediate page can be exported as a result, in this after each label and corresponding tag attributes successful match
Between page results can be character string, all intermediate page results connect the centre for being formed a customized label
The page.
S206 judges that the label of the intermediate page of customized label and corresponding tag attributes whether there is, if existing,
Corresponding tag attribute values are then judged whether in a value range, if so, the intermediate page of customized label is sorted out
By the intermediate page of inspection, then to may be selected to execute step S207- steps S209 or step S210- steps S212.
Wherein, check to include following aspect:
1, the intermediate page label of customized label whether there is, for example, the intermediate page label of customized label includes
But it is not limited to following label:Trade labels (page entry label), (form template page-tag, belongs to single page to table labels
Face die plate), tab labels (bookmark template page label, belong to combination page label), tr labels (row label, for identifying whether
Shown separately as a line), td labels (column label, for identifying whether separately as a row display), field label (fields
Label), button labels (button label), group labels (packet label);
2, corresponding tag attributes whether there is, for example, the corresponding initCode tag attributes of trade labels,
ViewName tag attributes, template tag attributes, tab tag attributes, width tag attributes, height tag attributes and
Browser tag attributes whether there is, the corresponding id tag attributes of field labels, label tag attributes, dt tag attributes,
Type tag attributes, format tag attributes, check tag attributes, Onchange tag attributes and Onfocusout label categories
Property etc. whether there is;
3, whether tag attributes value range is correct, for example, the value range of the corresponding type tag attributes of field labels
It is below 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 value range of the corresponding target tag attributes of Button labels is below 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 (hide
Type) and the self-defined types of private-.
4, the subtab of the intermediate page label of customized label whether can be subtab, for example, table labels and
Tab labels can be as the subtab of trade labels, and other labels just cannot be as the subtab of trade labels;tr
Label and field labels can be as the subtabs of table labels, and other labels just cannot be as table labels
Subtab;
5, whether the tag attributes that must be inputted have value, for example, the corresponding showfield tag attributes of field labels,
Editable tag attributes, required tag attributes, the corresponding disable tag attributes of button labels must input
The value of tag attributes, these tag attributes is only two kinds of yes/no.
S207 obtains XSL single page face moulds if the intermediate page file for passing through inspection is to support single-page tag types
Plate.
Wherein, it is to support single-page tag types (table types) by the type of the intermediate page file of inspection, then obtains
XSL single page face die plates, that supports single-page tag types (table types) can only obtain XSL by the intermediate page file of inspection
Single page face die plate.
S208 judges the label in the tag definition rule and XSL single page face die plates by the intermediate page file checked
Whether input rule matches, and judges the definition rule and XSL of the corresponding tag attributes of intermediate page file by checking
Whether the input rule of corresponding tag attributes matches in single page face die plate.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL single page face die plates are served only for processing and support single page noodles
The intermediate page file by inspection of type, XSL single page face die plates include a set of about the defeated of label and corresponding tag attributes
Enter rule and a set of output rule about label and corresponding tag attributes, input rule is used to fit through the centre of inspection
The definition rule of the label of the page and corresponding tag attributes, for example, input rule fits through the mark of the intermediate page of inspection
Label and the definition rule of corresponding tag attributes include but not limited to:Trade labels, for identifying whether it is a self-defined mark
The intermediate page file of label;Tr labels, for identifying whether to show separately as a line;Td labels, for identifying whether individually
As a row display;Field labels, for identifying whether it is a control.Label of the output rule for matching the Flex pages
With the definition rule of corresponding tag attributes, for example, the label of the output rule match Flex pages and corresponding tag attributes
Definition rule includes but not limited to:Vase-view labels, it is corresponding with the trade labels of the intermediate page by inspection;
Vase-GroupTR labels, it is corresponding with tr labels;Vase-GroupTD labels, it is corresponding with td labels;Vase-
TextInput labels, Vase-ComboBox labels, Vase-TextAre labels, Vase-checkBox labels and Vase-
DateField labels are corresponding with field labels.
S209 is advised if matching by the output of label output rule and corresponding tag attributes in XSL single page face die plates
Flex page results are then exported, and the Flex pages are generated using the Flex page results.
Wherein, a Flex page results can be exported after each label and corresponding tag attributes successful match, it should
Flex page results can be character string, and all Flex page results, which connect, is formed a Flex page.
S210 obtains XSL combination pages if the intermediate page file for passing through inspection is to support combination page tag types
Template.
Wherein, it is to support combination page tag types (tab types) by the type of the intermediate page file of inspection, then obtains
XSL combination page templates support can only being obtained by the intermediate page file of inspection for combination page tag types (tab types)
XSL combination page templates.
S211 judges the mark in the tag definition rule and XSL combination page templates by the intermediate page file checked
Label input rule whether match, and judge by check the corresponding tag attributes of intermediate page file definition rule with
Whether the input rule of corresponding tag attributes matches in XSL combination page templates.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL combination page templates are served only for processing and support combined page
The intermediate page file by inspection of noodles type, XSL single page face die plates include a set of about label and corresponding tag attributes
Input rule and a set of output rule about label and corresponding tag attributes, input rule is for fitting through inspection
The definition rule of the label of intermediate page and corresponding tag attributes, for example, input rule fits through the intermediate page of inspection
Label and the definition rules of corresponding tag attributes include but not limited to:Trade labels, for identifying whether that being one makes by oneself
The intermediate page file of adopted label;Tr labels, for identifying whether to show separately as a line;Td labels, for identifying whether
Separately as a row display;Field labels, for identifying whether it is a control.Output rule is for matching the Flex pages
The definition rule of label and corresponding tag attributes, for example, the label and corresponding label category of the output rule match Flex pages
The definition rule of property includes but not limited to:Vase-view labels, it is corresponding with the trade labels of the intermediate page by inspection;
Vase-GroupTR labels, it is corresponding with tr labels;Vase-GroupTD labels, it is corresponding with td labels;Vase-
TextInput labels, Vase-ComboBox labels, Vase-TextAre labels, Vase-checkBox labels and Vase-
DateField labels are corresponding with field labels.
S212, if matching, by the output of label output rule and corresponding tag attributes in XSL combination page templates
Rule output Flex page results, and generate the Flex pages using the Flex page results.
Wherein, a Flex page results can be exported after each label and corresponding tag attributes successful match, it should
Flex page results can be character string, and all Flex page results, which connect, is formed a Flex page.
In the embodiment of the present invention, first by the intermediate page that original system conversion of page is customized label, then to described
The intermediate page of customized label is checked, finally will be converted to the Flex pages by the intermediate page of inspection again, entire to turn
Intermediate page has been used during changing, and the label and attribute of intermediate page have been defined, while having used different XSL
Conversion module, it is only necessary to the input and output specification for considering the label and attribute definition specification and XSL templates of intermediate page, without
Flex Floor layer Technologies excessively understood, can effectively improve project development progress, reduce page development cost, the present invention is real
It applies example and additionally provides specific intermediate page inspection scheme, reduce code error risk.
Fig. 3 is another flex page conversion method flow diagram provided in an embodiment of the present invention.As shown in figure 3, should
Flex page conversion method includes the following steps:
S301 reads original system page file.
Wherein, read original system page file calls perform script to read by conversion script by entrance script,
Here conversion script is a set of application program write, and entrance script can be that windows can perform script, perform script
Can be CScript scripts.
S302 judges whether the original system page is the convertible page according to the title of original system page file, if so,
Execute step S303- steps S305.
Wherein, each original system page file has corresponding page file names, for example, working as the original system page
When the entitled .itf of suffix of the title of file and the ingress label of original system page file are tran labels, then the original system is judged
Page file is the convertible page.
S303 obtains XSL output templates if original system page file is output page type.
Wherein, original system page file is the output page (the input pages) type, then obtains XSL output templates, output page
The original system page file of face (the input pages) type can only obtain XSL output templates.
S304 judges that the tag definition rule of original system page file is with the label input rule in XSL output templates
No matching, and judge the definition rule of the corresponding tag attributes of original system page file mark corresponding with XSL output templates
Whether the input rule of label attribute matches.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL output templates are served only for processing output page type
Original system page file, XSL output templates include a set of input rule and a set of pass about label and corresponding tag attributes
In the output rule of label and corresponding tag attributes, input rule is for matching the label of the original system page and corresponding label
The definition rule of attribute, for example, the definition rule packet of the label and corresponding tag attributes of the input rule matching original system page
It includes but is not limited to:Tran labels, ingress label are the entrances of the page, are the labels of page top, for identifying whether it is one
A original system page file;Input labels, ranks label, for identifying whether to show separately as a line or separately as one
Row display;Field labels, field label, for identifying whether it is a control.Output rule is for matching customized label
The definition rule of the label of intermediate page and corresponding tag attributes, for example, the intermediate page of output rule match customized label
The definition rule of the label in face and corresponding tag attributes includes but not limited to:Trade labels are marked with the tran of the original system page
Label correspond to, for identify whether be a customized label intermediate page file, trade labels include initCode label categories
Property (the initialization actuating code attribute of the page, called when the page initializes the attribute configuration transaction complete initialization),
ViewName tag attributes (Page Name) and Template tag attributes (for distinguishing Page Template type) etc.;Table is marked
Label, for identifying the intermediate page type of customized label;Tab labels, for identifying the intermediate page type of customized label;
Field labels, it is corresponding with the field labels of the original system page, for identifying whether it is a control.
S305, if matching, by the output rule of label output rule and corresponding tag attributes in XSL output templates
Intermediate page is exported as a result, and utilizing the intermediate page of intermediate page result generation customized label.
Wherein, an intermediate page can be exported as a result, in this after each label and corresponding tag attributes successful match
Between page results can be character string, all intermediate page results connect the centre for being formed a customized label
The page.
S306 judges that the label of the intermediate page of customized label and corresponding tag attributes whether there is, if existing,
Corresponding tag attribute values are then judged whether in a value range, if so, the intermediate page of customized label is sorted out
By the intermediate page of inspection, then to may be selected to execute step S307- steps S309 or step S310- steps S312.
Wherein, check to include following aspect:
1, the intermediate page label of customized label whether there is, for example, the intermediate page label of customized label includes
But it is not limited to following label:Trade labels (page entry label), (form template page-tag, belongs to single page to table labels
Face die plate), tab labels (bookmark template page label, belong to combination page label), tr labels (row label, for identifying whether
Shown separately as a line), td labels (column label, for identifying whether separately as a row display), field label (fields
Label), button labels (button label), group labels (packet label);
2, corresponding tag attributes whether there is, for example, the corresponding initCode tag attributes of trade labels,
ViewName tag attributes, template tag attributes, tab tag attributes, width tag attributes, height tag attributes and
Browser tag attributes whether there is, the corresponding id tag attributes of field labels, label tag attributes, dt tag attributes,
Type tag attributes, format tag attributes, check tag attributes, Onchange tag attributes and Onfocusout label categories
Property etc. whether there is;
3, whether tag attributes value range is correct, for example, the value range of the corresponding type tag attributes of field labels
It is below 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 value range of the corresponding target tag attributes of Button labels is below 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 (hide
Type) and the self-defined types of private-.
4, the subtab of the intermediate page label of customized label whether can be subtab, for example, table labels and
Tab labels can be as the subtab of trade labels, and other labels just cannot be as the subtab of trade labels;tr
Label and field labels can be as the subtabs of table labels, and other labels just cannot be as table labels
Subtab;
5, whether the tag attributes that must be inputted have value, for example, the corresponding showfield tag attributes of field labels,
Editable tag attributes, required tag attributes, the corresponding disable tag attributes of button labels must input
The value of tag attributes, these tag attributes is only two kinds of yes/no.
S307 obtains XSL single page face moulds if the intermediate page file for passing through inspection is to support single-page tag types
Plate.
S308 judges the label in the tag definition rule and XSL single page face die plates by the intermediate page file checked
Whether input rule matches, and judges the definition rule and XSL of the corresponding tag attributes of intermediate page file by checking
Whether the input rule of corresponding tag attributes matches in single page face die plate.
S309 is advised if matching by the output of label output rule and corresponding tag attributes in XSL single page face die plates
Flex page results are then exported, and the Flex pages are generated using the Flex page results.
S310 obtains XSL combination pages if the intermediate page file for passing through inspection is to support combination page tag types
Template.
S311 judges the mark in the tag definition rule and XSL combination page templates by the intermediate page file checked
Label input rule whether match, and judge by check the corresponding tag attributes of intermediate page file definition rule with
Whether the input rule of corresponding tag attributes matches in XSL combination page templates.
S312, if matching, by the output of label output rule and corresponding tag attributes in XSL combination page templates
Rule output Flex page results, and generate the Flex pages using the Flex page results.
The step S307- steps S312 of the present embodiment can be found in the step S207- step S212 of Fig. 2 embodiments, herein not
It repeats.
In the embodiment of the present invention, first by the intermediate page that original system conversion of page is customized label, then to described
The intermediate page of customized label is checked, finally will be converted to the Flex pages by the intermediate page of inspection again, entire to turn
Intermediate page has been used during changing, and the label and attribute of intermediate page have been defined, while having used different XSL
Conversion module, it is only necessary to the input and output specification for considering the label and attribute definition specification and XSL templates of intermediate page, without
Flex Floor layer Technologies excessively understood, can effectively improve project development progress, reduce page development cost, the present invention is real
It applies example and additionally provides specific intermediate page inspection scheme, reduce code error risk.
Fig. 4 is a kind of structural schematic diagram of Flex pages reforming unit provided in an embodiment of the present invention.As shown in figure 4, should
Flex page reforming units may include:Reading unit 401, the first judging unit 402, the first converting unit 403, inspection unit
404 and second converting unit 405.
Reading unit 401, for reading original system page file.
Wherein, it is to be called to execute foot by entrance script by conversion script that reading unit 401, which reads original system page file,
Originally it read, conversion script here is a set of application program write, and entrance script can be that windows can perform foot
This, perform script can be CScript scripts.
First judging unit 402 judges whether the original system page is that can turn for the title according to original system page file
It skips face.
Wherein, each original system page file has corresponding page file names, for example, working as the original system page
When the entitled .itf of suffix of the title of file and the ingress label of original system page file are tran labels, then the original system is judged
Page file is the convertible page.
First converting unit 403, when for being in 402 judging result of the first judging unit, according to original system page text
The type of part, by the intermediate page that original system conversion of page is customized label.
Wherein, the original system page can be used to be converted into Java service pages (Java server pages, JSP)
The intermediate page of labels page, customized label is Viw labels pages, and the different pages has different tag definition rules and mark
Sign attribute definition rule.The type of original system page file can be divided into input page (the input pages) type and the output page
(the output pages) type, during conversion of page, the type of different original system page files will use different conversions
Template.
Inspection unit 404 is checked for the intermediate page to customized label, obtains the intermediate page by checking
Face.
Wherein, the intermediate page of customized label is a kind of transitional page, which is to generate Flex pages
Face, while a kind of definition standard of customized label and corresponding tag attributes is also provided, when the Flex pages need more new liter
When grade, it is only necessary to modify in the intermediate page, so that it may excessive without understanding to realize that the update to the Flex pages upgrades
Flex Floor layer Technologies, facilitate the further renolation to the Flex pages.
Second converting unit 405 will pass through the centre of inspection for the type according to the intermediate page file by inspection
Conversion of page is the Flex pages.
Wherein, it can be divided by the type of the intermediate page file of inspection and support single-page tag types (table types)
With support the combination page tag types (tab types), the types of the different intermediate page files by inspection to use different
Conversion module.
In the embodiment of the present invention, by the intermediate page that original system conversion of page is customized label, to the self-defined mark
The intermediate page of label is checked, then will be converted to the Flex pages by the intermediate page of inspection, is only used in entire transfer process
Intermediate page has been arrived, Flex Floor layer Technologies need not excessively have been understood, project development progress can be effectively improved, has reduced the page
Development cost, the embodiment of the present invention additionally provide intermediate page and check scheme, reduce code error risk.
Fig. 5 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention.As shown in figure 5,
The Flex page reforming units may include:Reading unit 401, the first judging unit 402, the first converting unit 403, inspection unit
404 and second converting unit 405.Wherein, the first converting unit 403 may include the first subelement 4301, the second subelement 4302
With third subelement 4303.
Reading unit 401, for reading original system page file.
First judging unit 402 judges whether the original system page is that can turn for the title according to original system page file
It skips face.
First converting unit 403, including the first subelement 4301, the second subelement 4302 and third subelement 4303.
First subelement 4301, when for being in 402 judging result of the first judging unit, if original system page file
For input page type, XSL input templates are obtained.
Wherein, original system page file is input page (the input pages) type, then obtains XSL input templates, incoming page
The original system page file of face (the input pages) type can only obtain XSL input templates.
Second subelement 4302, for judge the tag definition rule of original system page file in XSL input templates
Whether label input rule matches, and judges that the definition rule of the corresponding tag attributes of original system page file is inputted with XSL
Whether the input rule of corresponding tag attributes matches in template.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL input templates are served only for processing input page type
Original system page file, XSL input templates include a set of input rule and a set of pass about label and corresponding tag attributes
In the output rule of label and corresponding tag attributes, input rule is for matching the label of the original system page and corresponding label
The definition rule of attribute, for example, the definition rule packet of the label and corresponding tag attributes of the input rule matching original system page
It includes but is not limited to:Tran labels, ingress label are the entrances of the page, are the labels of page top, for identifying whether it is one
A original system page file;Input labels, ranks label, for identifying whether to show separately as a line or separately as one
Row display;Field labels, field label, for identifying whether it is a control.Output rule is for matching customized label
The definition rule of the label of intermediate page and corresponding tag attributes, for example, the intermediate page of output rule match customized label
The definition rule of the label in face and corresponding tag attributes includes but not limited to:Trade labels are marked with the tran of the original system page
Label correspond to, for identify whether be a customized label intermediate page file, trade labels include initCode label categories
Property (the initialization actuating code attribute of the page, called when the page initializes the attribute configuration transaction complete initialization),
ViewName tag attributes (Page Name) and Template tag attributes (for distinguishing Page Template type) etc.;Table is marked
Label, for identifying the intermediate page type of customized label;Tab labels, for identifying the intermediate page type of customized label;
Field labels, it is corresponding with the field labels of the original system page, for identifying whether it is a control.
Third subelement 4303, when for being matched in 4302 judging result of the second subelement, by XSL input templates
Label output rule and corresponding tag attributes output rules output intermediate pages as a result, and utilize the intermediate page result
Generate the intermediate page of customized label.
Wherein, an intermediate page can be exported as a result, in this after each label and corresponding tag attributes successful match
Between page results can be character string, all intermediate page results connect the centre for being formed a customized label
The page.
Inspection unit 404 is checked for the intermediate page to customized label, obtains the intermediate page by checking
Face.
Second converting unit 405 will pass through the centre of inspection for the type according to the intermediate page file by inspection
Conversion of page is the Flex pages.
Reading unit 401, the first judging unit 402, inspection unit 404 in the present embodiment and the second converting unit
405 can be found in reading unit 401, the first judging unit 402, inspection unit 404 and the second converting unit 405 of Fig. 4, herein
It does not repeat.
In the embodiment of the present invention, first by the intermediate page that original system conversion of page is customized label, then to described
The intermediate page of customized label is checked, finally will be converted to the Flex pages by the intermediate page of inspection again, entire to turn
Intermediate page has been used during changing, and the label and attribute of intermediate page have been defined, while having used different XSL
Conversion module, it is only necessary to the input and output specification for considering the label and attribute definition specification and XSL templates of intermediate page, without
Flex Floor layer Technologies excessively understood, can effectively improve project development progress, reduce page development cost, the present invention is real
It applies example and additionally provides specific intermediate page inspection scheme, reduce code error risk.
Fig. 6 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention.As shown in fig. 6,
The Flex page reforming units may include:Reading unit 401, the first judging unit 402, the first converting unit 403, inspection unit
404 and second converting unit 405.Wherein, the first converting unit 403 may include the 4th subelement 4304, the 5th subelement 4305
With the 6th subelement 4306.
Reading unit 401, for reading original system page file.
First judging unit 402 judges whether the original system page is that can turn for the title according to original system page file
It skips face.
First converting unit 403, including the 4th subelement 4304, the 5th subelement 4305 and the 6th subelement 4306.
4th subelement 4304, when for being in 402 judging result of the first judging unit, if original system page file
To export page type, then XSL output templates are obtained.
Wherein, original system page file is the output page (the input pages) type, then obtains XSL output templates, output page
The original system page file of face (the input pages) type can only obtain XSL output templates.
5th subelement 4305, for judge the tag definition rule of original system page file in XSL output templates
Whether label input rule matches, and judges that the definition rule of the corresponding tag attributes of original system page file is exported with XSL
Whether the input rule of corresponding tag attributes matches in template.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL output templates are served only for processing output page type
Original system page file, XSL output templates include a set of input rule and a set of pass about label and corresponding tag attributes
In the output rule of label and corresponding tag attributes, input rule is for matching the label of the original system page and corresponding label
The definition rule of attribute, for example, the definition rule packet of the label and corresponding tag attributes of the input rule matching original system page
It includes but is not limited to:Tran labels, ingress label are the entrances of the page, are the labels of page top, for identifying whether it is one
A original system page file;Input labels, ranks label, for identifying whether to show separately as a line or separately as one
Row display;Field labels, field label, for identifying whether it is a control.Output rule is for matching customized label
The definition rule of the label of intermediate page and corresponding tag attributes, for example, the intermediate page of output rule match customized label
The definition rule of the label in face and corresponding tag attributes includes but not limited to:Trade labels are marked with the tran of the original system page
Label correspond to, for identify whether be a customized label intermediate page file, trade labels include initCode label categories
Property (the initialization actuating code attribute of the page, called when the page initializes the attribute configuration transaction complete initialization),
ViewName tag attributes (Page Name) and Template tag attributes (for distinguishing Page Template type) etc.;Table is marked
Label, for identifying the intermediate page type of customized label;Tab labels, for identifying the intermediate page type of customized label;
Field labels, it is corresponding with the field labels of the original system page, for identifying whether it is a control.
6th subelement 4306, when for being matched in 4305 judging result of the 5th subelement, by XSL output templates
Label output rule and corresponding tag attributes output rules output intermediate pages as a result, and utilize the intermediate page result
Generate the intermediate page of customized label.
Wherein, an intermediate page can be exported as a result, in this after each label and corresponding tag attributes successful match
Between page results can be character string, all intermediate page results connect the centre for being formed a customized label
The page.
Inspection unit 404 is checked for the intermediate page to customized label, obtains the intermediate page by checking
Face.
Second converting unit 405 will pass through the centre of inspection for the type according to the intermediate page file by inspection
Conversion of page is the Flex pages.
Reading unit 401, the first judging unit 402, inspection unit 404 in the present embodiment and the second converting unit
405 can be found in reading unit 401, the first judging unit 402, inspection unit 404 and the second converting unit 405 of Fig. 4, herein
It does not repeat.
In the embodiment of the present invention, first by the intermediate page that original system conversion of page is customized label, then to described
The intermediate page of customized label is checked, finally will be converted to the Flex pages by the intermediate page of inspection again, entire to turn
Intermediate page has been used during changing, and the label and attribute of intermediate page have been defined, while having used different XSL
Conversion module, it is only necessary to the input and output specification for considering the label and attribute definition specification and XSL templates of intermediate page, without
Flex Floor layer Technologies excessively understood, can effectively improve project development progress, reduce page development cost, the present invention is real
It applies example and additionally provides specific intermediate page inspection scheme, reduce code error risk.
Fig. 7 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention.As shown in fig. 7,
The Flex page reforming units may include:Reading unit 401, the first judging unit 402, the first converting unit 403, inspection unit
404 and second converting unit 405.Wherein, the second converting unit 405 may include the 7th subelement 4507, the 8th subelement 4508
With the 9th subelement 4509.
Reading unit 401, for reading original system page file.
First judging unit 402 judges whether the original system page is that can turn for the title according to original system page file
It skips face.
First converting unit 403, when for being in 402 judging result of the first judging unit, according to original system page text
The type of part, by the intermediate page that original system conversion of page is customized label.
Inspection unit 404 is checked for the intermediate page to customized label, obtains the intermediate page by checking
Face.
Second converting unit 405 includes the 7th subelement 4507, the 8th subelement 4508 and the 9th subelement 4509.
7th subelement 4507, for when the intermediate page file by inspection is to support single-page tag types, obtaining
Take XSL single page face die plates.
Wherein, it is to support single-page tag types (table types) by the type of the intermediate page file of inspection, then obtains
XSL single page face die plates, that supports single-page tag types (table types) can only obtain XSL by the intermediate page file of inspection
Single page face die plate.
8th subelement 4508, tag definition rule and XSL single pages for judging the intermediate page file by checking
Whether the label input rule in face die plate matches, and judges to pass through the corresponding tag attributes of intermediate page file checked
Whether definition rule matches with the input rule of corresponding tag attributes in XSL single page face die plates.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL single page face die plates are served only for processing and support single page noodles
The intermediate page file by inspection of type, XSL single page face die plates include a set of about the defeated of label and corresponding tag attributes
Enter rule and a set of output rule about label and corresponding tag attributes, input rule is used to fit through the centre of inspection
The definition rule of the label of the page and corresponding tag attributes, for example, input rule fits through the mark of the intermediate page of inspection
Label and the definition rule of corresponding tag attributes include but not limited to:Trade labels, for identifying whether it is a self-defined mark
The intermediate page file of label;Tr labels, for identifying whether to show separately as a line;Td labels, for identifying whether individually
As a row display;Field labels, for identifying whether it is a control.Label of the output rule for matching the Flex pages
With the definition rule of corresponding tag attributes, for example, the label of the output rule match Flex pages and corresponding tag attributes
Definition rule includes but not limited to:Vase-view labels, it is corresponding with the trade labels of the intermediate page by inspection;
Vase-GroupTR labels, it is corresponding with tr labels;Vase-GroupTD labels, it is corresponding with td labels;Vase-
TextInput labels, Vase-ComboBox labels, Vase-TextAre labels, Vase-checkBox labels and Vase-
DateField labels are corresponding with field labels.
9th subelement 4509, when for being matched in 4508 judging result of the 8th subelement, by XSL single page face die plates
In label output rule and corresponding tag attributes output rules export Flex page results, and utilize the Flex page knots
Fruit generates the Flex pages.
Wherein, a Flex page results can be exported after each label and corresponding tag attributes successful match, it should
Flex page results can be character string, and all Flex page results, which connect, is formed a Flex page.
Reading unit 401, the first judging unit 402, the first converting unit 403 in the present embodiment and inspection unit
404 can be found in reading unit 401, the first judging unit 402, the first converting unit 403 and the inspection unit 404 of Fig. 4, herein
It does not repeat.
In the embodiment of the present invention, first by the intermediate page that original system conversion of page is customized label, then to described
The intermediate page of customized label is checked, finally will be converted to the Flex pages by the intermediate page of inspection again, entire to turn
Intermediate page has been used during changing, and the label and attribute of intermediate page have been defined, while having used different XSL
Conversion module, it is only necessary to the input and output specification for considering the label and attribute definition specification and XSL templates of intermediate page, without
Flex Floor layer Technologies excessively understood, can effectively improve project development progress, reduce page development cost, the present invention is real
It applies example and additionally provides specific intermediate page inspection scheme, reduce code error risk.
Fig. 8 is the structural schematic diagram of another kind Flex page reforming units provided in an embodiment of the present invention.As shown in figure 8,
The Flex page reforming units may include:Reading unit 401, the first judging unit 402, the first converting unit 403, inspection unit
404 and second converting unit 405.Wherein, the second converting unit 405 may include the tenth subelement 4510, the 11st subelement
4511 and the 12nd subelement 4512.
Reading unit 401, for reading original system page file.
First judging unit 402 judges whether the original system page is that can turn for the title according to original system page file
It skips face.
First converting unit 403, when for being in 402 judging result of the first judging unit, according to original system page text
The type of part, by the intermediate page that original system conversion of page is customized label.
Inspection unit 404 is checked for the intermediate page to customized label, obtains the intermediate page by checking
Face.
Second converting unit 405 includes the tenth subelement 4510, the 11st subelement 4511 and the 12nd subelement 4512.
Tenth subelement 4510 is used for when the intermediate page file by inspection is to support combination page tag types,
Obtain XSL combination page templates.
Wherein, it is to support combination page tag types (tab types) by the type of the intermediate page file of inspection, then obtains
XSL combination page templates support can only being obtained by the intermediate page file of inspection for combination page tag types (tab types)
XSL combination page templates.
11st subelement 4511, for judging through the tag definition rule of intermediate page file of inspection and described
Whether the label input rule in XSL combination page templates matches, and judges corresponding by the intermediate page file checked
Whether the definition rule of tag attributes matches with the input rule of corresponding tag attributes in XSL combination page templates.
Wherein, label here includes father's label and subtab, and father's label can have multiple available subtabs, such as intermediate
Trade labels in the page just have table subtabs and tab subtabs;Father's label can also there are one can use subtab, such as
Field labels in intermediate page just only have button subtabs;Some labels are then without in subtab, such as intermediate page
Button labels, tr labels and td labels.Not being each label has corresponding tag attributes, some labels not to have label category
Property, such as line labels in intermediate page are just without tag attributes.XSL combination page templates are served only for processing and support combined page
The intermediate page file by inspection of noodles type, XSL single page face die plates include a set of about label and corresponding tag attributes
Input rule and a set of output rule about label and corresponding tag attributes, input rule is for fitting through inspection
The definition rule of the label of intermediate page and corresponding tag attributes, for example, input rule fits through the intermediate page of inspection
Label and the definition rules of corresponding tag attributes include but not limited to:Trade labels, for identifying whether that being one makes by oneself
The intermediate page file of adopted label;Tr labels, for identifying whether to show separately as a line;Td labels, for identifying whether
Separately as a row display;Field labels, for identifying whether it is a control.Output rule is for matching the Flex pages
The definition rule of label and corresponding tag attributes, for example, the label and corresponding label category of the output rule match Flex pages
The definition rule of property includes but not limited to:Vase-view labels, it is corresponding with the trade labels of the intermediate page by inspection;
Vase-GroupTR labels, it is corresponding with tr labels;Vase-GroupTD labels, it is corresponding with td labels;Vase-
TextInput labels, Vase-ComboBox labels, Vase-TextAre labels, Vase-checkBox labels and Vase-
DateField labels are corresponding with field labels.
12nd subelement 4512, when for being matched in 4511 judging result of the 11st subelement, by XSL combined pages
The output rule of label output rule and corresponding tag attributes in face die plate exports Flex page results, and utilizes the Flex
Page results generate the Flex pages.
Wherein, a Flex page results can be exported after each label and corresponding tag attributes successful match, it should
Flex page results can be character string, and all Flex page results, which connect, is formed a Flex page.
Reading unit 401, the first judging unit 402, the first converting unit 403 in the present embodiment and inspection unit
404 can be found in reading unit 401, the first judging unit 402, the first converting unit 403 and the inspection unit 404 of Fig. 4, herein
It does not repeat.
In the embodiment of the present invention, first by the intermediate page that original system conversion of page is customized label, then to described
The intermediate page of customized label is checked, finally will be converted to the Flex pages by the intermediate page of inspection again, entire to turn
Intermediate page has been used during changing, and the label and attribute of intermediate page have been defined, while having used different XSL
Conversion module, it is only necessary to the input and output specification for considering the label and attribute definition specification and XSL templates of intermediate page, without
Flex Floor layer Technologies excessively understood, can effectively improve project development progress, reduce page development cost, the present invention is real
It applies example and additionally provides specific intermediate page inspection 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 can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include:Flash disk, read-only memory (Read-Only Memory, ROM), random access device (Random Access
Memory, RAM), disk or CD etc..
A kind of flex page conversion method disclosed by the embodiments of the present invention and device are described in detail above, herein
In apply specific case principle and implementation of the present invention are described, the explanation of above example is only intended to sides
Assistant solves the method and its core concept of the present invention;Meanwhile for those of ordinary skill in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
The limitation of the present invention.
Claims (12)
1. a kind of flex page conversion method, which is characterized in that including:
Read original system page file;
According to the title of the original system page file, judge whether the original system page is the convertible page;
If so, according to the type of the original system page file, use conversion module by the original system conversion of page for certainly
Define the intermediate page of label, wherein the conversion module used in the type of different original system page files is different;
The intermediate page of the customized label is checked, the intermediate page by checking is obtained;
According to the type of the intermediate page file by inspection, the intermediate page by inspection is converted using conversion module
For the Flex pages, wherein the conversion module used in the type of different intermediate page files is different.
2., will be described according to the method described in claim 1, it is characterized in that, according to the type of the original system page file
Original system conversion of page is that the intermediate page of customized label includes:
If the original system page file is input page type, XSL input templates are obtained;
Judge whether are the tag definition rule of the original system page file and the label input rule in the XSL input templates
Matching, and judge the definition rules of the corresponding tag attributes of the original system page file with it is right in the XSL input templates
Whether the input rule for the tag attributes answered matches;
If matching, the output rule by label output rule and corresponding tag attributes in the XSL input templates is defeated
Go out intermediate page as a result, and utilizing the intermediate page of intermediate page result generation customized label.
3., will be described according to the method described in claim 1, it is characterized in that, according to the type of the original system page file
Original system conversion of page is that the intermediate page of customized label includes:
If the original system page file is output page type, XSL output templates are obtained;
Judge whether are the tag definition rule of the original system page file and the label input rule in the XSL output templates
Matching, and judge the definition rules of the corresponding tag attributes of the original system page file with it is right in the XSL output templates
Whether the input rule for the tag attributes answered matches;
If matching, the output rule by label output rule and corresponding tag attributes in the XSL output templates is defeated
Go out intermediate page as a result, and utilizing the intermediate page of intermediate page result generation customized label.
4. according to the method described in claim 1, it is characterized in that, check the intermediate page of the customized label,
It obtains and includes by the intermediate page checked:
The label and corresponding tag attributes for judging the intermediate page of the customized label whether there is;
If existing, judge corresponding tag attribute values whether in a value range;
If so, the intermediate page of the customized label is classified as the intermediate page by inspection.
5. according to the method described in claim 1, it is characterized in that, according to the type of the intermediate page file by inspection, incite somebody to action
The intermediate page by inspection is converted to the Flex pages:
If the intermediate page file by inspection is to support single-page tag types, XSL single page face die plates are obtained;
Judge described defeated by the label in the tag definition rule and the XSL single pages face die plate of the intermediate page file of inspection
Enter whether rule matches, and judges definition rule and the institute of the corresponding tag attributes of intermediate page file by inspection
Whether the input rule for stating corresponding tag attributes in XSL single page face die plates matches;
If matching, by the output rule of label output rule and corresponding tag attributes in the XSL single pages face die plate
Flex page results are exported, and the Flex pages are generated using the Flex page results.
6. according to the method described in claim 1, it is characterized in that, according to the type of the intermediate page file by inspection, incite somebody to action
The intermediate page by inspection is converted to the Flex pages:
If the intermediate page file by inspection is to support combination page tag types, XSL combination page templates are obtained;
Pass through the label in the tag definition rule and the XSL combination pages template of the intermediate page file of inspection described in judging
Whether input rule matches, and judge the definition rules of the corresponding tag attributes of intermediate page file by inspection with
Whether the input rule of corresponding tag attributes matches in the XSL combination pages template;
If matching, advised by the output of label output rule and corresponding tag attributes in the XSL combination pages template
Flex page results are then exported, and the Flex pages are generated using the Flex page results.
7. a kind of Flex pages reforming unit, which is characterized in that including:
Reading unit, for reading original system page file;
First judging unit judges whether the original system page is convertible for the title according to the original system page file
The page;
First converting unit, when for being in the first judging unit judging result, according to the original system page file
Type, use conversion module by the original system conversion of page for the intermediate page of customized label, wherein different former systems
Conversion module used in the type for page file of uniting is different;
Inspection unit is checked for the intermediate page to the customized label, obtains the intermediate page by checking;
Second converting unit is passed through using conversion module by described for the type according to the intermediate page file by inspection
The intermediate page of inspection is converted to the Flex pages, wherein the conversion module used in the type of different intermediate page files is different.
8. device according to claim 7, which is characterized in that first converting unit includes:
First subelement, when for being in the first judging unit judging result, if the original system page file is
Input page type obtains XSL input templates;
Second subelement, for judge the original system page file tag definition rule and in the XSL input templates
Label input rule whether match, and judge definition rule and the institute of the corresponding tag attributes of the original system page file
Whether the input rule for stating corresponding tag attributes in XSL input templates matches;
Third subelement, when for being matched in the second subelement judging result, by the mark in the XSL input templates
The output rule output intermediate page of label output rule and corresponding tag attributes using the intermediate page result as a result, and given birth to
At the intermediate page of customized label.
9. device according to claim 7, which is characterized in that first converting unit includes:
4th subelement, when for being in the first judging unit judging result, if the original system page file is
Page type is exported, XSL output templates are obtained;
5th subelement, for judge the original system page file tag definition rule and in the XSL output templates
Label input rule whether match, and judge definition rule and the institute of the corresponding tag attributes of the original system page file
Whether the input rule for stating corresponding tag attributes in XSL output templates matches;
6th subelement, when for being matched in the 5th subelement judging result, by the mark in the XSL output templates
The output rule output intermediate page of label output rule and corresponding tag attributes using the intermediate page result as a result, and given birth to
At the intermediate page of customized label.
10. device according to claim 7, which is characterized in that the inspection unit is specifically used for judging described self-defined
The label of the intermediate page of label and corresponding tag attributes whether there is, if in the presence of, judge corresponding tag attributes
Whether value is in a value range, if so, the intermediate page of the customized label is classified as the intermediate page by inspection
Face.
11. device according to claim 7, which is characterized in that second converting unit includes:
7th subelement, for when the intermediate page file by inspection is to support single-page tag types, obtaining XSL single pages
Face die plate;
8th subelement, the tag definition rule for judging the intermediate page file by inspection and the XSL single pages
Whether the label input rule in face die plate matches, and judges the corresponding label category of intermediate page file by inspection
Whether the definition rule of property matches with the input rule of corresponding tag attributes in the XSL single pages face die plate;
9th subelement, when for being matched in the 8th subelement judging result, by the XSL single pages face die plate
The output rule of label output rule and corresponding tag attributes exports Flex page results, and utilizes the Flex page results
Generate the Flex pages.
12. device according to claim 7, which is characterized in that second converting unit includes:
Tenth subelement, for when the intermediate page file by inspection is to support combination page tag types, obtaining XSL groups
Hinge face die plate;
11st subelement, the tag definition rule for judging the intermediate page file by inspection and the XSL groups
Whether the label input rule in hinge face die plate matches, and judges the corresponding mark of intermediate page file by inspection
Whether the definition rule of label attribute matches with the input rule of corresponding tag attributes in the XSL combination pages template;
12nd subelement, when for being matched in the 11st subelement judging result, by the XSL combined pages face mould
The output rule of label output rule and corresponding tag attributes in plate exports Flex page results, and utilizes described Flex pages
Face result generates the Flex pages.
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 CN104360848A (en) | 2015-02-18 |
CN104360848B true 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) |
Families Citing this family (3)
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 |
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 |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8010955B2 (en) * | 2004-03-05 | 2011-08-30 | International Business Machines Corporation | Reducing the run-time cost of incorporating custom tags in a server page |
US8386562B2 (en) * | 2009-07-01 | 2013-02-26 | International Business Machines Corporation | Method, apparatus and computer program product for processing responses to a web page |
-
2014
- 2014-10-29 CN CN201410594484.7A patent/CN104360848B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN104360848A (en) | 2015-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104461484B (en) | The implementation method and device of front-end template | |
CN105095444A (en) | Information acquisition method and device | |
CN104360848B (en) | A kind of flex page conversion method and device | |
CN109740159B (en) | Processing method and device for named entity recognition | |
US20220300546A1 (en) | Event extraction method, device and storage medium | |
CN112199473A (en) | Multi-turn dialogue method and device in knowledge question-answering system | |
CN111638876A (en) | Dynamic form implementation method and device, electronic equipment and storage medium | |
CN113205814A (en) | Voice data labeling method and device, electronic equipment and storage medium | |
CN112084752A (en) | Statement marking method, device, equipment and storage medium based on natural language | |
CN101859295A (en) | System and method for converting simplified Chinese character/word and traditional Chinese character/word with labels and prompts | |
CN114610855B (en) | Dialogue reply generation method and device, electronic equipment and storage medium | |
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 | |
CN117034230A (en) | Data verification method, device, equipment and storage medium thereof | |
CN102332002A (en) | Method and system for converting file from portable document format (PDF) to electronic publication (EPUB) format | |
CN107704580A (en) | Question and answer method for pushing, device, server and storage medium based on user's period | |
CN106934047A (en) | One kind will post content in method and device shown in small routine | |
CN115730603A (en) | Information extraction method, device, equipment and storage medium based on artificial intelligence | |
JP7087256B2 (en) | Construction system ledger inspection support device and construction system ledger inspection support model learning device | |
JPWO2015198419A1 (en) | Information processing apparatus, information processing method, program, and storage medium | |
CN114637831A (en) | Data query method based on semantic analysis and related equipment thereof | |
CN113641714A (en) | Medical data correction method, device, computer equipment and storage medium | |
Lima et al. | Interoperability among semantic resources in construction: is it feasible | |
CN113220737A (en) | Data recommendation method and device, electronic equipment and storage medium | |
CN110019968B (en) | XML file processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |