CN103164201A - Web page generating method - Google Patents

Web page generating method Download PDF

Info

Publication number
CN103164201A
CN103164201A CN2011104198427A CN201110419842A CN103164201A CN 103164201 A CN103164201 A CN 103164201A CN 2011104198427 A CN2011104198427 A CN 2011104198427A CN 201110419842 A CN201110419842 A CN 201110419842A CN 103164201 A CN103164201 A CN 103164201A
Authority
CN
China
Prior art keywords
label
attribute
statement
page
web page
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.)
Pending
Application number
CN2011104198427A
Other languages
Chinese (zh)
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.)
Aisino Corp
Original Assignee
Aisino 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 Aisino Corp filed Critical Aisino Corp
Priority to CN2011104198427A priority Critical patent/CN103164201A/en
Publication of CN103164201A publication Critical patent/CN103164201A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a web page generating method. The web page generating method comprises the steps of using a plurality of general extensive makeup language (XML) labels to define the characteristics of a web page; writing a document conversion program, reading a page formatting file in the document conversion program and analyzing the XML labels in the page formatting file; converting the XML labels by using corresponding hypertext makeup language (HTML) content and generating corresponding HTML elements; and outputting the web page in an HTML form. Through the web page generating method, the problem that defining of the web page is too complex is solved, and the speed of developing the web page is greatly quickened.

Description

The Web page generation method
Technical field
The present invention relates to a kind of Web page generation method.
Background technology
The method of Web page definition is a lot, and the jsp file form, the ASP of Microsoft, the XAML form that adopt Sun Microsystems are arranged, and the PHP file layout is arranged, the SWF XML file layout that has Adobe company to adopt, and every kind of form has its Pros and Cons.For various file layouts, all the fundamental element of webpage representation is defined, comprise the definition of the page, layout, control, the event.
At present, Software Industry exploitation web page, common way is to use the JSP form of SUN or the ASP formatted file of Microsoft, the html element element that interts in formatted file carries out the exploitation of the page.This mode Main Problems is, page development is complicated, easily makes mistakes, and developer's technical merit required higher, and the speed of exploitation is also slow.Maintenance cost is higher.
But, too complicated when definition due to web page style disunity, reduced the speed of developing web page.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of Web page generation method, to solve the slower problem of tempo of development of the web page that prior art exists, wherein:
Comprise according to the Web page generation method of the embodiment of the present invention:
Use the feature of a plurality of general XML label definition Web pages; Write the document converse routine, read style sheet in the document converse routine, and resolve the XML label in style sheet; Use corresponding HTML content to replace on the XML label, generate corresponding html element element; The web page of output html format.
Wherein, general XML label comprises: page-tag, layout tab, controls tab, event tag.
Wherein, general XML label comprises:
The Form label at statement web interface;
The toolbar label of statement tool bar;
Statement is positioned at the button label of button on tool bar;
The item label of statement drop-down menu project;
The widgets label of statement page space disposing way;
The basic label of statement control;
The datagrid label of statement form;
The col label of the row in the statement form;
Be used for doing the extendPointer label of the container that articulates the Plugin label;
The plugin label that is used for the definition process plug-in unit;
Be used to the bind label of page control binding event;
The layout label that is used for the definition and layout form.
Wherein, the toolbar label is positioned at the Form label.
Wherein, it is inner that the button label is positioned at the toolbar label.
Wherein be positioned at the button label in, item label inner.
Wherein be positioned at the form label in, widgets label inner.
Wherein, the plugin label is positioned in the middle of the extendPointer label.
Wherein, the XML label is corresponding one by one with page elements.
Compared with prior art, according to technical scheme of the present invention, by defining a series of universal tag, solved the too complicated problem of web page definition, improved greatly the speed of exploitation web page, and guaranteed that the style of web page is unified.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, and illustrative examples of the present invention and explanation thereof are used for explaining the present invention, do not consist of improper restriction of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram of the Web page generation method of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the label nest relation of the embodiment of the present invention.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
According to embodiments of the invention, provide a kind of Web page generation method.With reference to figure 1, Fig. 1 is the process flow diagram of the Web page generation method of the embodiment of the present invention, as shown in Figure 1, comprising:
Step S102 uses a plurality of general XML labels to define the feature of the Web pages;
Step S104 writes the document converse routine, reads style sheet in the document converse routine, and resolves the XML label in style sheet;
Step S106 uses corresponding HTML content to replace on the XML label, generates corresponding html element element;
Step S108, the web page of output html format.
Wherein, general XML label comprises: page-tag, layout tab, controls tab, event tag.Describe general XML label in detail below in conjunction with Fig. 2.
(1)<Form〉label
Being used for one, statement web interface,<Form〉label has following attribute:
Attribute id is for the numbering of representation page;
Attribute desp for the title of representation page, describes the implication of the page;
Attribute formType is used for the template name that representation page uses;
Attribute version, for the start context of representation page, acquiescence is 0.
(2)<toolbar〉label
Be used for tool bar of statement, must be positioned at<Form label is inner, this tool bar will be presented at page top,<toolbar〉label inside can define a plurality of buttons.
(3)<button〉label
Be used for button that is positioned at above tool bar of statement, must be positioned at<toolbar label is inner.It can be shown as a button on tool bar.<button〉label can also be nested<item〉label.<button〉following attribute arranged:
Attribute id is for the numbering of expression button;
Attribute text is used for the word that will show on the expression button;
Attribute img is used for the picture that will show on the expression button;
Attribute onclick, after being used for the click of expression mouse, the event that trigger.
(4)<item〉label
Be used for drop-down menu project of statement, must be positioned at<button label is inner.This label has id, text, img, the attributes such as onclick, the implication of attribute and<button〉labels class seemingly, do not give unnecessary details herein.
(5)<widgets〉label
Be used for statement page space disposing way, must be positioned at<form label is inner, this label does not have attribute.
(6)<basic〉label
Being used for control of statement,<basic〉label has following attribute:
Attribute name is necessary, is used for the id of representation page element;
Attribute label is necessary, is used for the caption of representation page element;
Attribute width is optional, is used for the width of representation page element;
Attribute height is optional, is used for the height of representation page element;
Attribute leftSpace is optional, is used for the left side distance of expression widget container relatively of living in;
Attribute topSpace is optional, is used for the top margin of expression widget container relatively of living in;
Attribute maxlength is optional, is used for the maximum input length of representation page element, and is effective to the input of Edit type;
Attribute widget is optional, is used for the type of representation page element, if not definition is that acquiescence is an edit box there is no the value device;
Attribute default is optional, is default value;
Attribute hint is optional, is used for the prompting of expression element;
Attribute readonly is optional, and whether be used for the representation page element is read-only, is worth to be true or false.
(7)<datagrid〉label
Being used for form of statement,<datagrid〉label has following attribute:
Attribute name is necessary, is used for the title id of expression form;
Attribute linkToState is optional, is used for the state set that the expression form can be used, and is only effective in the editable situation of form;
Attribute layout is optional, is used for representing the numbering of place layout;
Attribute hasPage is optional, and whether be used for expression has the paging bar, is worth to be true or false, and is invalid in editable situation, is defaulted as false;
Whether attribute canBeReset is optional, be used for expression and can be cleared, and is worth for true or false, is defaulted as false;
Attribute pageAction is optional, the action title of submitting to when being used for the expression paging, the action that generally should inquire about;
Attribute pagebar is optional, is used for the type of expression paging bar;
Attribute pageHj is optional, and whether need add up to row, be worth for true or false if being used for expression, be defaulted as true;
Attribute defaultPageSize is optional, the record number of every page of demonstration when being used for the expression paging;
Attribute template is optional, is used for the template of expression grid control;
Attribute width is optional, is used for the overall width of expression form;
Attribute height is optional, is used for the height of expression form;
Attribute attr is optional, is used for the attribute of expression form.
(8)<col〉label
This label is used for row of statement form,<col〉label has following attribute:
Attribute id is necessary, is used for the title id of expression row;
Attribute label is necessary, is used for the title of expression row;
Attribute cacu is optional, is used for the total row account form of expression row, only has at present two kinds of sum and count;
Whether attribute hidden is optional, be used for the expression row and hide, and is worth for true or false, is defaulted as false;
Attribute pageCacuExp is optional, for the computing formula that represents to be listed on the page;
Attribute default is optional, is used for the default value of expression row;
Attribute img is optional, is used for the picture that the expression row show;
Attribute attr is optional, is used for the attribute of expression row;
Attribute width is optional, is used for the width of expression row;
Attribute sort is optional, is used for the sortord of expression row;
Attribute align is optional, is used for the alignment thereof of expression row;
Attribute href is optional, is used for the hyperlink of expression row;
Attribute color is optional, is used for the Show Color of expression row;
Attribute editType is optional, is used for the edit box type of expression row;
Attribute inputFormator is optional, is used for data type and the form of the edit box requirement of expression row;
Attribute validator is optional, is used for the verification of expression row;
Whether attribute 1ock is optional, be used for the expression row and lock, and is worth for true or false, is defaulted as false, and locking can only lock the row that begin most, and continuously;
Whether attribute ignore is optional, be used for the expression row and ignore, and is worth for true or false, is defaulted as false.
(9)<extendPointer〉label
Be used for doing the container that articulates Plugin.
(10)<plugin〉label
<plugin〉be used for processing plug-in unit of definition, must be positioned at<extendPointer in the middle of, this label has following attribute:
Attribute type is necessary, is used for the indication plug unit type;
Attribute attr is optional, is used for the indication plug unit attribute;
Attribute desp is optional, is used for indication plug unit and describes;
Attribute onEvent is optional, is used for the trigger event of indication plug unit.
(11)<bind〉label
<bind〉label is for binding an event to page control, and this label has following attribute:
Attribute element is necessary, is used for the id of the element object of presentation of events binding, can be the button on toolbar, can be also widget;
Attribute event is necessary, is used for the presentation of events type, such as the click event, and keyup event etc.;
Attribute bind is used for the processing scripts that the expression label is write event.
(12)<layout〉label
<layout〉label is for layout format of definition, and this label has following attribute:
Attribute layout, being used for expression higher level label is widgets;
Attribute type is necessary, is used for the type of expression layout;
Attribute name is optional, is used for the name of expression layout;
Attribute leftSpace is optional, is used for the left side distance of expression layout;
Attribute topSpace is optional, is used for the top margin of expression layout;
Attribute width is optional, is used for the width of expression layout;
Attribute height is optional, is used for the height of expression layout;
Attribute isHidden is optional, and be used for expression layout and whether hide when showing, value true, false, acquiescence false does not hide;
Whether attribute ignore is optional, be used for being illustrated in ignoring when resolving xml changing layout, and value true, false are defaulted as false;
Attribute attr is optional, is used for the attribute of expression layout;
Attribute desp is optional, is used for title or the description of expression layout.
After the feature of using general a series of XML label definition Web pages, by different programming languages, write the document converse routine, read the page definition file in program, and the XML label in resolution file (page elements that different label is corresponding different), with label according to rule, use corresponding HTML content to replace, generate corresponding html element element, after whole document analysis is completed, finally export the web page of html format.
To sum up, according to technical scheme of the present invention, by defining a series of universal tag, solved the too complicated problem of web page definition, improved greatly the speed of exploitation web page, and guaranteed that the style of web page is unified.
The above is only embodiments of the invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in claim scope of the present invention.

Claims (9)

1. one kind is used for the Web page generation method, it is characterized in that, comprising:
Use the feature of a plurality of general XML label definition Web pages;
Write the document converse routine, read style sheet in the document converse routine, and resolve the XML label in style sheet;
Use corresponding HTML content to replace on described XML label, generate corresponding html element element;
The web page of output html format.
2. method according to claim 1, is characterized in that, described general XML label comprises: page-tag, layout tab, controls tab, event tag.
3. method according to claim 1, is characterized in that, described general XML label comprises:
The Form label at statement web interface;
The toolbar label of statement tool bar;
Statement is positioned at the button label of button on tool bar;
The item label of statement drop-down menu project;
The widgets label of statement page space disposing way;
The basic label of statement control;
The datagrid label of statement form;
The col label of the row in the statement form;
Be used for doing the extendPointer label of the container that articulates the Plugin label;
The plugin label that is used for the definition process plug-in unit;
Be used to the bind label of page control binding event;
The layout label that is used for the definition and layout form.
4. method according to claim 3, is characterized in that, the toolbar label is positioned at the Form label.
5. method according to claim 3, is characterized in that, it is inner that the button label is positioned at the toolbar label.
6. method according to claim 3, is characterized in that, it is inner that the item label is positioned at the button label.
7. method according to claim 3, is characterized in that, it is inner that the widgets label is positioned at the form label.
8. method according to claim 3, is characterized in that, the plugin label is positioned in the middle of the extendPointer label.
9. method according to claim 1, is characterized in that, described XML label is corresponding one by one with page elements.
CN2011104198427A 2011-12-15 2011-12-15 Web page generating method Pending CN103164201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104198427A CN103164201A (en) 2011-12-15 2011-12-15 Web page generating method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104198427A CN103164201A (en) 2011-12-15 2011-12-15 Web page generating method

Publications (1)

Publication Number Publication Date
CN103164201A true CN103164201A (en) 2013-06-19

Family

ID=48587326

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104198427A Pending CN103164201A (en) 2011-12-15 2011-12-15 Web page generating method

Country Status (1)

Country Link
CN (1) CN103164201A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063510A (en) * 2014-07-09 2014-09-24 刘永健 Method and software for increasing page reaction speed
CN104462090A (en) * 2013-09-13 2015-03-25 方正信息产业控股有限公司 Method and device for processing data
CN104461513A (en) * 2014-11-21 2015-03-25 山东航天信息有限公司 Method and device for generating form interface
CN105630459A (en) * 2014-10-25 2016-06-01 上海未达数码科技有限公司 Method for converting PPT document to HTML page
CN106777077A (en) * 2016-12-13 2017-05-31 网易(杭州)网络有限公司 The generation method and device of webpage
CN107506431A (en) * 2017-08-22 2017-12-22 广州创维平面显示科技有限公司 By method, storage medium and the terminal of XML file generation html file
CN109582305A (en) * 2017-09-29 2019-04-05 阿里巴巴集团控股有限公司 For the coding method of mobile application page elements, device and electronic equipment
CN112861483A (en) * 2021-02-07 2021-05-28 吉林省科学技术信息研究所 Online editing method for demonstration manuscript
CN114553971A (en) * 2022-02-24 2022-05-27 山东浪潮通软信息科技有限公司 Application framework design method, system, device and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020122060A1 (en) * 2000-12-18 2002-09-05 Markel Steven O. Wizard generating HTML web pages using XML and XSL
US20030037076A1 (en) * 2001-03-08 2003-02-20 International Business Machines Corporation Method, computer program and system for style sheet generation
CN1584828A (en) * 2004-06-02 2005-02-23 中兴通讯股份有限公司 Automatic generatnig method for configuration interface of telecommunicating apparatus
CN1801149A (en) * 2004-12-16 2006-07-12 微软公司 Systems and methods for converting a formatted document to a web page
CN1983958A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Method for generating two set of network administration systems
US20070214408A1 (en) * 2006-03-07 2007-09-13 Optimus Corporation Declarative web application for search and retrieval
CN101055578A (en) * 2006-04-12 2007-10-17 龙搜(北京)科技有限公司 File content dredger based on rule
US7346840B1 (en) * 2001-02-26 2008-03-18 Cisco Technology, Inc. Application server configured for dynamically generating web forms based on extensible markup language documents and retrieved subscriber data
CN101499175A (en) * 2009-03-10 2009-08-05 中山大学 3D graphic multi-resolution indication method based on XML and LOD technology
CN101611399A (en) * 2007-02-16 2009-12-23 罗凡 Webpage, website modeling and generation

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020122060A1 (en) * 2000-12-18 2002-09-05 Markel Steven O. Wizard generating HTML web pages using XML and XSL
US7346840B1 (en) * 2001-02-26 2008-03-18 Cisco Technology, Inc. Application server configured for dynamically generating web forms based on extensible markup language documents and retrieved subscriber data
US20030037076A1 (en) * 2001-03-08 2003-02-20 International Business Machines Corporation Method, computer program and system for style sheet generation
CN1584828A (en) * 2004-06-02 2005-02-23 中兴通讯股份有限公司 Automatic generatnig method for configuration interface of telecommunicating apparatus
CN1801149A (en) * 2004-12-16 2006-07-12 微软公司 Systems and methods for converting a formatted document to a web page
US20070214408A1 (en) * 2006-03-07 2007-09-13 Optimus Corporation Declarative web application for search and retrieval
CN101055578A (en) * 2006-04-12 2007-10-17 龙搜(北京)科技有限公司 File content dredger based on rule
CN1983958A (en) * 2006-04-23 2007-06-20 华为技术有限公司 Method for generating two set of network administration systems
CN101611399A (en) * 2007-02-16 2009-12-23 罗凡 Webpage, website modeling and generation
CN101499175A (en) * 2009-03-10 2009-08-05 中山大学 3D graphic multi-resolution indication method based on XML and LOD technology

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104462090A (en) * 2013-09-13 2015-03-25 方正信息产业控股有限公司 Method and device for processing data
CN104063510A (en) * 2014-07-09 2014-09-24 刘永健 Method and software for increasing page reaction speed
CN105630459A (en) * 2014-10-25 2016-06-01 上海未达数码科技有限公司 Method for converting PPT document to HTML page
CN104461513A (en) * 2014-11-21 2015-03-25 山东航天信息有限公司 Method and device for generating form interface
CN104461513B (en) * 2014-11-21 2018-01-09 山东航天信息有限公司 A kind of method and device for generating form interface
CN106777077A (en) * 2016-12-13 2017-05-31 网易(杭州)网络有限公司 The generation method and device of webpage
CN107506431A (en) * 2017-08-22 2017-12-22 广州创维平面显示科技有限公司 By method, storage medium and the terminal of XML file generation html file
CN109582305A (en) * 2017-09-29 2019-04-05 阿里巴巴集团控股有限公司 For the coding method of mobile application page elements, device and electronic equipment
CN109582305B (en) * 2017-09-29 2022-04-12 阿里巴巴集团控股有限公司 Encoding method and device for mobile application page elements and electronic equipment
CN112861483A (en) * 2021-02-07 2021-05-28 吉林省科学技术信息研究所 Online editing method for demonstration manuscript
CN114553971A (en) * 2022-02-24 2022-05-27 山东浪潮通软信息科技有限公司 Application framework design method, system, device and medium

Similar Documents

Publication Publication Date Title
CN103164201A (en) Web page generating method
US8347276B2 (en) Systems and methods for software specification and design using a unified document
Mann Java Server Faces in Action
CA2764012A1 (en) Computer-implemented method, system and computer program product for displaying a user interface component
CN101263490A (en) Methods and systems for providing direct style sheet editing
CN104267949A (en) Form designer and form design method
CN101165685A (en) Dynamic web page generation method and system
JP6866551B2 (en) Computer algebra methods, devices, devices and programs
CN103544024A (en) Method and system for generating browser page and terminal device
CN103620586A (en) Linking source code to running element
CN102053987A (en) Uniform interface for displaying and modifying data array
Harris HTML5 and CSS3 All-in-one for Dummies
Röske A visual tool for generating digital calibration certificates (DCCs) in Excel
CN106033348A (en) Webpage making method, device and electronic equipment
US20220222065A1 (en) System and method of computer-assisted computer programming
Gapeyev et al. Statically typed document transformation: An Xtatic experience
KR20160011905A (en) Computer readable medium recording program for converting to online learning data and method of converting to online learning data
Cameron HTML5, JavaScript, and JQuery 24-hour Trainer
Davis et al. Industrial-strength documentation for ACL2
Wei et al. Research on software reuse of user interface for mobile computing devices based on XML
Quint et al. From templates to schemas: Bridging the gap between free editing and safe data processing
Yafi et al. Syntax Recovery for Uniface as a Domain Specific Language
Shaout et al. Instrument cluster driver information display database and viewer tool
Story The AcroTEX eDucation Bundle (AeB)
Brüggemann-Klein et al. Graphical User Interface Tool forDesigningModel-BasedUserInterfaces with UIML

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130619

RJ01 Rejection of invention patent application after publication