CN102662984A - HTML(hypertext markup language)-based multi-platform message handling method - Google Patents

HTML(hypertext markup language)-based multi-platform message handling method Download PDF

Info

Publication number
CN102662984A
CN102662984A CN2012100656098A CN201210065609A CN102662984A CN 102662984 A CN102662984 A CN 102662984A CN 2012100656098 A CN2012100656098 A CN 2012100656098A CN 201210065609 A CN201210065609 A CN 201210065609A CN 102662984 A CN102662984 A CN 102662984A
Authority
CN
China
Prior art keywords
html
web page
page code
platform
xsl
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
CN2012100656098A
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.)
NANJING XINYULI CULTURE SPREAD CO Ltd
Original Assignee
NANJING XINYULI CULTURE SPREAD CO Ltd
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 NANJING XINYULI CULTURE SPREAD CO Ltd filed Critical NANJING XINYULI CULTURE SPREAD CO Ltd
Priority to CN2012100656098A priority Critical patent/CN102662984A/en
Publication of CN102662984A publication Critical patent/CN102662984A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a HTML(hypertext markup language)-based multi-platform message handling method, which includes the steps of a, acquiring webpage codes; b, subjecting the webpage codes to cleaning conversion to meet an XHTML (extensible hypertext markup language) format; c, creating different XSL (extensible stylesheet language) conversion files for different platforms; d, directly calling the webpage codes handled in the step b to display on a PC (personal computer) platform; and for other platforms at initializing interfaces, respectively calling XSL conversion files in the step c to convert the webpage codes handled in the step b when instant message polling is output. The method is used to standardize the webpage codes into the XHTML format, create the different XSL conversion files for the different platforms, and convert and display for the different platforms, so that the problem of client interface disorder or crash caused by page style difference is avoided.

Description

Multi-platform message treatment method based on HTML
Technical field
The present invention relates to a kind of webpage and transform display packing, relate in particular to a kind of multi-platform message treatment method based on HTML.
Background technology
HTML, promptly HTML (Hypertext Markup Language) is a kind of SGML that is used to describe web document.Why HTML is called HTML, is because comprised so-called " hyperlink " point in the text.So-called hyperlink is exactly a kind of URL pointer, through activate (click) it, can make browser obtain new webpage easily.This also is one of most important reason of HTML acquisition widespread use.This shows that the essence of webpage is exactly HTML,, can create powerful webpage through being used in combination other Web technology (as: script, CGI, assembly etc.).Thereby HTML is the basis of Web programming, that is to say that the WWW is based upon on the hypertext basis.
It is not very complicated that html document is made, and powerful, supports the file of different data format to be bumped into, and this also is one of WWW reason in vogue, and its principal feature is following: 1) simplification, the superset mode is adopted in the HTML edition upgrading, thereby more flexible.2) extensibility, the widespread use of html language have been brought and have been added powerful, increase requirements such as identifier, and HTML takes the mode of subclass element, for system extension is brought assurance.3) platform-neutral.Though PC is propagated its belief on a large scale, there are plenty of such people to use other machines such as MAC, and HTML can use on platform widely.Though HTML has above-mentioned advantage; But; To the rich text message data of editor on the browser or submission, if directly be presented on the mobile device (like IPHONE, ANDROID); More mutual (as preserving file etc.) can't carry out, and the pattern of the page can possibly cause client end interface entanglement or collapse.Therefore need to carry out webpage and transform demonstration, the multi-platform message treatment method based on HTML is provided to different client side.
Summary of the invention
Technical matters to be solved by this invention provides a kind of multi-platform message treatment method based on HTML, can satisfy webpage message and show in the conversion of different platform, client end interface entanglement or the crash issue of effectively avoiding the pattern difference by the page to cause.
The present invention solves the problems of the technologies described above the technical scheme that adopts to provide a kind of multi-platform message treatment method based on HTML, comprises the steps: a) to obtain web page code; B) web page code being cleared up conversion makes it meet the XHTML form; C) create different XSL transformed documents for different platform; D) web page code after handling to the PC platform, direct invocation step b) shows; To other platforms, when the output of initialization interface and instant message poll, invocation step c respectively) XSL transformed document is changed the web page code after handling in the step b).
The above-mentioned multi-platform message treatment method based on HTML, wherein, said other platforms are mobile phone browser or cell-phone customer terminal.
The above-mentioned multi-platform message treatment method based on HTML wherein, is cleared up the XML sequencing method that Microsoft is used in the conversion back to web page code, with web page code XML serializing, generates the XML file, generates the XSL transformed document in the step c) based on the XML file.
The above-mentioned multi-platform message treatment method based on HTML, wherein, the common format label does in the web page code of cleaning conversion back<span class=" * * * "></span>, choose the attachment files label and do<span class=" * * * _ attach "></span>
The above-mentioned multi-platform message treatment method based on HTML, wherein, said attachment files comprises picture, document and music file.
The present invention contrasts prior art has following beneficial effect: the multi-platform message treatment method based on HTML provided by the invention; Be the XHTML form with the web page code standard earlier; Create different XSL transformed documents for different platform then; And transform demonstration, thereby client end interface entanglement or the crash issue of avoiding the pattern difference by the page to cause according to different platform.
Description of drawings
Fig. 1 is the multi-platform message treatment method schematic flow sheet that the present invention is based on HTML.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further description.
Fig. 1 is the multi-platform message treatment method schematic flow sheet that the present invention is based on HTML.
See also Fig. 1, specify the multi-platform Message Processing implementation process that the present invention is based on HTML below:
Step S101: obtain web page code.
Step S102: web page code is cleared up conversion make it meet XHTML (eXtensible HyperText Markup Language can expand hypertext markup language), specifically comprise long content in the web page code is carried out cutting; Again the whole labelizations of web page code, and all labels are all closed, make it to meet the XHTML form after specifically can using HTML TIDY cleaning message.
Step S103: for different platform is created different XSL (EXtensible Stylesheet Language; XSL) transformed document is as using the XML sequencing method of Microsoft, with web page code XML serializing; Generate the XML file; Based on the XSL transformed document of XML file generation different platform, different platform comprises PC platform and non-PC platform, and non-PC platform is mainly mobile phone browser, cell-phone customer terminal or PAD (palm PC) browser.
Step S104: when client-requested, use the XSLT template that message is carried out dynamic translation, to the PC platform, the web page code that directly calls after handling among the S102 shows that webpage message will be exported by former state; To other platforms; When initialization interface and the output of instant message poll; The XSL transformed document of invocation step S103 carries out dynamic translation to web page code respectively; Through after the above-mentioned processing, every message meets the xhtml format of content, and the user is following formation at the fixed news of browser client definition:
Figure BSA00000683646500031
For the on-fixed message format, as paste the content of the html format come from the outside, perhaps in the HTML content of rich text frame inediting, as long as the class of div does not comprise " * * * _ * " class of type.In addition, client will often use non-html form to play up the page, raise the efficiency and bandwagon effect with this.For this kind client, message format need convert the JSON form into to be resolved more efficiently by client.The JSON form will be corresponding to several aspects of set form, and concrete attachment format is following:
Figure BSA00000683646500032
Figure BSA00000683646500041
In sum; Multi-platform message treatment method based on HTML provided by the invention; Be the XHTML form with the web page code standard earlier; Be that then different platform creates different XSL transformed documents, and transform demonstration according to different platform, thus client end interface entanglement or the crash issue of avoiding the pattern difference by the page to cause.
Though the present invention discloses as above with preferred embodiment; Right its is not that any those skilled in the art are not breaking away from the spirit and scope of the present invention in order to qualification the present invention; When can doing a little modification and perfect, so protection scope of the present invention is when being as the criterion with what claims defined.

Claims (6)

1. the multi-platform message treatment method based on HTML is characterized in that, comprises the steps:
A) obtain web page code;
B) web page code being cleared up conversion makes it meet the XHTML form;
C) create different XSL transformed documents for different platform;
D) web page code after handling to the PC platform, direct invocation step b) shows; To other platforms, when the output of initialization interface and instant message poll, invocation step c respectively) XSL transformed document is changed the web page code after handling in the step b).
2. the multi-platform message treatment method based on HTML as claimed in claim 1 is characterized in that said other platforms are mobile phone browser or cell-phone customer terminal.
3. the multi-platform message treatment method based on HTML as claimed in claim 1 is characterized in that, said step b) is cleared up conversion to web page code and comprised the steps:
Long content in the web page code is carried out cutting;
Again the whole labelizations of web page code, and all labels are all closed.
4. the multi-platform message treatment method based on HTML as claimed in claim 3; It is characterized in that, web page code is cleared up the XML sequencing method that Microsoft is used in the conversion back, web page code XML serializing; Generate the XML file, generate the XSL transformed document in the step c) based on the XML file.
5. like claim 3 or 4 described multi-platform message treatment methods, it is characterized in that the common format label does in the web page code of cleaning conversion back based on HTML<span class=" * * * "></span>, choose the attachment files label and do<span class=" * * * _ attach "></span>
6. the multi-platform message treatment method based on HTML as claimed in claim 5 is characterized in that said attachment files comprises picture, document and music file.
CN2012100656098A 2012-03-14 2012-03-14 HTML(hypertext markup language)-based multi-platform message handling method Pending CN102662984A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012100656098A CN102662984A (en) 2012-03-14 2012-03-14 HTML(hypertext markup language)-based multi-platform message handling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012100656098A CN102662984A (en) 2012-03-14 2012-03-14 HTML(hypertext markup language)-based multi-platform message handling method

Publications (1)

Publication Number Publication Date
CN102662984A true CN102662984A (en) 2012-09-12

Family

ID=46772475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012100656098A Pending CN102662984A (en) 2012-03-14 2012-03-14 HTML(hypertext markup language)-based multi-platform message handling method

Country Status (1)

Country Link
CN (1) CN102662984A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176803A (en) * 2013-04-18 2013-06-26 成都一云数据处理有限公司 Code serialization method
CN104360848A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Flex page converting method and device
CN105306233A (en) * 2014-06-19 2016-02-03 中兴通讯股份有限公司 Terminal management method, terminal management system, server and terminal
CN106371844A (en) * 2016-08-31 2017-02-01 北京奇艺世纪科技有限公司 Method and system for presenting webpage by native user interface assembly
CN107045465A (en) * 2017-04-24 2017-08-15 郑州云海信息技术有限公司 A kind of method and device of server diagnostic result picture and textization display
CN111639290A (en) * 2020-05-22 2020-09-08 中国工商银行股份有限公司 Method and device for processing access to online channel financial products

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010056460A1 (en) * 2000-04-24 2001-12-27 Ranjit Sahota Method and system for transforming content for execution on multiple platforms
US20020073080A1 (en) * 2000-01-14 2002-06-13 Lipkin Daniel S. Method and apparatus for an information server
US20020111972A1 (en) * 2000-12-15 2002-08-15 Virtual Access Networks. Inc. Virtual access
US20090006454A1 (en) * 2007-06-29 2009-01-01 Microsoft Corporation WYSIWYG, browser-based XML editor
CN102156742A (en) * 2011-04-19 2011-08-17 北京神州数码思特奇信息技术股份有限公司 Method and middleware for supporting structured document display with own browser of mobile phone

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020073080A1 (en) * 2000-01-14 2002-06-13 Lipkin Daniel S. Method and apparatus for an information server
US20010056460A1 (en) * 2000-04-24 2001-12-27 Ranjit Sahota Method and system for transforming content for execution on multiple platforms
US20020111972A1 (en) * 2000-12-15 2002-08-15 Virtual Access Networks. Inc. Virtual access
US20090006454A1 (en) * 2007-06-29 2009-01-01 Microsoft Corporation WYSIWYG, browser-based XML editor
CN102156742A (en) * 2011-04-19 2011-08-17 北京神州数码思特奇信息技术股份有限公司 Method and middleware for supporting structured document display with own browser of mobile phone

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103176803A (en) * 2013-04-18 2013-06-26 成都一云数据处理有限公司 Code serialization method
CN105306233A (en) * 2014-06-19 2016-02-03 中兴通讯股份有限公司 Terminal management method, terminal management system, server and terminal
US10404665B2 (en) 2014-06-19 2019-09-03 Zte Corporation Terminal management method and system, server and terminal
CN104360848A (en) * 2014-10-29 2015-02-18 中国建设银行股份有限公司 Flex page converting method and device
CN104360848B (en) * 2014-10-29 2018-09-04 中国建设银行股份有限公司 A kind of flex page conversion method and device
CN106371844A (en) * 2016-08-31 2017-02-01 北京奇艺世纪科技有限公司 Method and system for presenting webpage by native user interface assembly
CN106371844B (en) * 2016-08-31 2019-10-22 北京奇艺世纪科技有限公司 A kind of method and system with primary user interface components displayed web page
CN107045465A (en) * 2017-04-24 2017-08-15 郑州云海信息技术有限公司 A kind of method and device of server diagnostic result picture and textization display
CN111639290A (en) * 2020-05-22 2020-09-08 中国工商银行股份有限公司 Method and device for processing access to online channel financial products
CN111639290B (en) * 2020-05-22 2024-04-09 中国工商银行股份有限公司 Processing method and device for accessing online channel financial products

Similar Documents

Publication Publication Date Title
CN102750281B (en) A kind of script processing method of browser and system
WO2017088509A1 (en) Page customization method and device
CN102662984A (en) HTML(hypertext markup language)-based multi-platform message handling method
CN104461484B (en) The implementation method and device of front-end template
TW565782B (en) Dedicated processor for efficient processing of documents encoded in a markup language
CN109522018B (en) Page processing method and device and storage medium
US20040015782A1 (en) Templating method for automated generation of print product catalogs
CN104461412A (en) Web page designated area printing method and system
US11677809B2 (en) Methods for transforming a server side template into a client side template and devices thereof
CN102831154B (en) The method and apparatus of data in the Text Entry of preservation and display web page
CN102043626A (en) Method and device for encapsulating extjs component, and method and system for generating user interface
CN105739963A (en) Method and device for generating webpage
CN109684580A (en) A kind of methods of exhibiting and electronic equipment of dynamic page
CN105138503A (en) Data editing method and device
CN105005472B (en) The method and device of Uyghur Character is shown on a kind of WEB
CN102053994A (en) Language parser and parsing method using same
CN112463152A (en) Webpage adaptation method and device based on AST
TW201207639A (en) Late resource localization binding for web services
CN112487763A (en) SVG-based OFD file online display method, server side and system
US7642937B2 (en) Character conversion methods and systems
CN106776800A (en) The page generation method of AngularJS frameworks, apparatus and system
CN102253986A (en) Method and device for improving webpage displaying effect in multiple terminals
CN102497478A (en) Method for cellphone users to access internet quickly
CN110674437A (en) Method and device for converting webpage data into PDF (Portable document Format) attachment
CN104020967A (en) WEB batch-printing method based on fully-domestic CPU and OS and commonly used for multiple browsers

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120912