KR20020020399A - A method for WML to xHTML Conversion - Google Patents

A method for WML to xHTML Conversion Download PDF

Info

Publication number
KR20020020399A
KR20020020399A KR1020000053530A KR20000053530A KR20020020399A KR 20020020399 A KR20020020399 A KR 20020020399A KR 1020000053530 A KR1020000053530 A KR 1020000053530A KR 20000053530 A KR20000053530 A KR 20000053530A KR 20020020399 A KR20020020399 A KR 20020020399A
Authority
KR
South Korea
Prior art keywords
document
xhtml
wml
tag
mobile phone
Prior art date
Application number
KR1020000053530A
Other languages
Korean (ko)
Other versions
KR100398933B1 (en
Inventor
서은주
문옥경
Original Assignee
정규석
주식회사데이콤
우승술
(주)필링크
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 정규석, 주식회사데이콤, 우승술, (주)필링크 filed Critical 정규석
Priority to KR10-2000-0053530A priority Critical patent/KR100398933B1/en
Publication of KR20020020399A publication Critical patent/KR20020020399A/en
Application granted granted Critical
Publication of KR100398933B1 publication Critical patent/KR100398933B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/80Information retrieval; Database structures therefor; File system structures therefor of semi-structured data, e.g. markup language structured data such as SGML, XML or HTML
    • G06F16/84Mapping; Conversion
    • G06F16/88Mark-up to mark-up conversion
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/221Parsing markup language streams

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Document Processing Apparatus (AREA)

Abstract

PURPOSE: A method for converting a WML(Wireless Markup Language) document into an xHTML(extensible HTML) document is provided to convert a card comprised in a WML document into an xHTML document. CONSTITUTION: If a WML document is inputted(10), a mobile phone parses the inputted document character by character(11). If a character is checked(12), the mobile phone recognizes the character as a text and inputs it to an xHTML document file as it is (13). Then the mobile phone checks tags(14). For convertible tags, the mobile phone converts the WML tags into xHTML tags(15). In case that unconvertible tags are checked, the mobile phone discards them(16). In case that <card> is detected, the mobile phone creates an xHTML document(17). If </card> is detected, the mobile phone stores and closes xHTML documents created up to now(18). After completing the conversion process(19), the mobile phone checks whether the created xHTML documents meet a defined rule(20).

Description

WAP 문서를 XHTML 문서로 변환하는 방법 { A method for WML to xHTML Conversion }How to convert a BAP document to a BHT document {A method for WML to xHTML Conversion}

본 발명은 WML 문서를 xHTML 문서로 변환하는 방법에 관한 것으로서, 특히 WML 문서를 구성하고 있는 하나의 Card를 하나의 xHTML 문서로 변환시키는 방법을 제시하는 WML 문서를 xHTML 문서로의 변환하는 방법에 관한 것이다.The present invention relates to a method for converting a WML document into an xHTML document, and more particularly, to a method for converting a WML document into an xHTML document, which proposes a method for converting one Card constituting a WML document into an xHTML document. will be.

일반적으로 종래의 방법은, WML 문서를 xHTML 문서로 변환에 관한 방법이 없어서, 기존에 사용하던 WML 문서를 xHTML 문서로의 변환을 할 수 없는 단점이 있었다.In general, the conventional method has no disadvantage in converting a WML document into an xHTML document and thus cannot convert a WML document to an xHTML document.

이에 본 발명은 상기와 같은 문제점을 해결하기 위하여 안출된 것으로서, WML 문서를 구성하고 있는 하나의 Card를 하나의 xHTML 문서로 변환시키는 방법을 제시하는 WML 문서를 xHTML 문서로의 변환하는 방법을 제공하는데 그 목적이 있다.Accordingly, the present invention has been made to solve the above problems, and provides a method for converting a WML document into an xHTML document, which provides a method for converting one Card constituting a WML document into a single xHTML document. The purpose is.

도 1은 본 발명에 따른 문서변환 순서도,1 is a document conversion flowchart according to the present invention,

도 2는 본 발명에 따른 xHTML 문서 생성 일실시예,2 illustrates an embodiment of generating an xHTML document according to the present invention;

도 3은 본 발명에 따른 입력되는 WML 문서 일실시예,3 is an embodiment of an input WML document according to the present invention;

도 4는 본 발명에 따른 출력되는 xHTML 문서 일실시예,4 is an embodiment of an output xHTML document according to the present invention;

도 5는 본 발명에 따른 WML 태그와 상응되는 xHTML 태그를 나타낸 태그 대응도이다.5 is a tag correspondence diagram illustrating an xHTML tag corresponding to a WML tag according to the present invention.

*도면의 주요부호 설명* Description of the main symbols in the drawings

상기와 같은 목적을 달성하기 위하여, 본 발명에 따른 WML 문서를 xHTML 문서로 변환하는 방법은 WML(Wireless Markup Language)문서를 xHTML(eXtensible Hyper Text Markup Language)문서로 변환하는 방법에 있어서, WML 문서를 입력받는 제 1단계; 상기 입력된 문서를 파싱(Parsing)하는 제 2단계; 상기 파싱된 문서에서 문자를 조사하는 제 3단계; 상기 파싱된 문서에서 태그(Tag)를 조사하는 제 4단계; 및 조사된 태그가 xHTML 태그로 변환가능한 경우에는 그에 상응되는 태그로 변환하고, 그렇지 못한 태그는 버리거나 그에 상응되는 xHTML 태그들의 조합으로 표현하는 제 5단계로 구성되는 것을 특징으로 한다.In order to achieve the above object, a method of converting a WML document into an xHTML document according to the present invention is a method of converting a WML (Wireless Markup Language) document into an xHTML (eXtensible Hyper Text Markup Language) document. Receiving a first step; A second step of parsing the input document; A third step of examining characters in the parsed document; A fourth step of inspecting a tag in the parsed document; And a fifth step of converting the irradiated tag into an xHTML tag and converting the tag into a corresponding tag.

상기 제 3단계는, 문자가 조사될 경우에는 택스트(Text)로 인식하여 문자 그대로 xHTML 문서 파일에 입력되는 과정을 거치도록 구성할 수 있고, 또는 EOF(End of File)일 경우에는 xHTML 문서로의 변환을 마치는 단계; 변환된 xHTML 문서를DTD(Document Type Definition) 체크하는 단계; 체크 확인된 xHTML 문서를 제공하는 단계를 거치도록 구성할 수 있다.The third step may be configured to recognize text as text and input the text into an xHTML document file as it is, or to an xHTML document in the case of an end of file (EOF). Finishing the conversion; Checking a document type definition (DTD) of the converted xHTML document; You can configure it to go through the steps of providing a checked xHTML document.

상기 제 5단계는, ‘< ’- 태그일 경우에 변환할 수 있는 태그는 xHTML 문서에서 상응되는 태그로 변환하고, 변환할 수 없는 태그는 버리는 과정을 거치도록 구성할 수 있고, 태그가 <card>일 경우에 xHTML 문서를 생성하고, </card>가 조사될 경우에는 그때까지 생성된 xHTML 문서를 저장하고 닫는 과정을 거치도록 구성할 수 있다.In the fifth step, a tag that can be converted in case of a '<'-tag is converted into a corresponding tag in an xHTML document, and a tag that cannot be converted is discarded, and the tag is <card You can configure it to create an xHTML document if>, and save and close the generated xHTML document until then.

이하, 첨부된 도면을 참조하여 본 발명을 상세히 설명하고자 한다. 도 1은 본 발명에 따른 순서도이다. 먼저 WML(Wireless Markup Language) 문서가 입력되면(10), 입력된 문서를 한 문자씩 파싱(Parsing)한다(11). 그리고, 파싱중에 문자를 조사하여(12), 문자일 경우에는 택스트(Text)로 인식하여 xHTML 문서 파일에 그대로 입력한다(13). EOF(End of file)일 경우에는 WML 문서를 xHTML 문서로 변환하는 과정을 마치게 된다(19). 태그를 조사하여(14), ‘< ’ - 태그는, 변환할 수 있는 태그일 경우에는 WML 태그를 xHTML 태그로 변환하고(15), 변환할 수 없는 태그일 경우에는 버린다(16). <card>일 경우에는 xHTML 문서를 생성하고(17), </card>일 경우에는 그때까지 생성된 xHTML 문서를 저장하고 닫는다(18). 상기의 과정중에서 변환과정을 마치고(19), 생성된 xHTML 문서가 기본적으로 정의된 규정을 따르는지 DTD(Document Type Definition) 체크를 한다(20). 에러가 발견시에는 수정하고(21), 이상이 없을때에는 모든 변환과정을 끝마치고 xHTML 문서를 제공하게 된다(22). WML 문서는 하나 이상의 card 들이 모여서 하나의 데크(Deck)를 구성한다. 그리고 각각의 card는 모바일 폰에서 하나의 독립된 화면을 구성한다. 그러므로 WML 문서를 xHTML 문서로 변환하기 위해서는 서로 독립된 화면을 표현할 수 있는 방법이 필요하다. WML 문서에서는 Global 변수와 Local 변수를 가지고 있으나 xHTML 문서에서는 변수를 처리할 수 있는 방법이 없다. 그러므로 xHTML 문서에서는 JavaScript의 setcookie, getcookie를 이용하여 변수 처리를 해결한다.Hereinafter, with reference to the accompanying drawings will be described in detail the present invention. 1 is a flow chart according to the invention. First, when a WML (Wireless Markup Language) document is input (10), the input document is parsed by one character (11). The text is examined during parsing (12), and if it is a text, it is recognized as text and input as it is into the xHTML document file (13). In the case of an end of file (EOF), the process of converting a WML document into an xHTML document is completed (19). The tag is examined (14) and the '<'-tag converts the WML tag to an xHTML tag if it is a convertible tag (15) and discards it if it is a tag that cannot be converted (15). In case of <card>, generate xHTML document (17). In case of </ card>, save and close the generated xHTML document until now (18). In the above process, the conversion process is completed (19), and the DTD (Document Type Definition) check is performed to determine whether the generated xHTML document basically conforms to the defined definition (20). If an error is found, it is corrected (21). If there is no error, all conversion is completed and an xHTML document is provided (22). A WML document consists of one or more decks that together form a deck. Each card constitutes one independent screen on the mobile phone. Therefore, to convert a WML document into an xHTML document, a method that can display independent screens is needed. WML documents have Global and Local variables, but there is no way to handle them in xHTML documents. Therefore, xHTML document solves variable handling by using setcookie and getcookie of JavaScript.

도 2는 본 발명에 따른 xHTML 문서 생성 일실시예이다. xHTML 문서를 생성한다는 것은 새로운 파일을 만들어서 도면상의 <body> 부분까지 제공하는 것을 의미한다. <card>와 </card> 사이에 존재하는 모든 WML 태그와 택스트는 본 도면의 <body> 아래에 xHTML 태그로 변환되어 쓰여지게 된다. 그리고, </card>가 나올 경우에는 xHTML 문서의 끝을 알리는 </body>와 </html>을 xHTML 문서에 적어주고 파일을 닫게 된다.2 is an embodiment of generating an xHTML document according to the present invention. Creating an xHTML document means creating a new file and providing the <body> portion of the drawing. All WML tags and texts existing between <card> and </ card> are converted to xHTML tags under <body> in this drawing. If </ card> is displayed, </ body> and </ html> are written to the xHTML document to indicate the end of the xHTML document and the file is closed.

도 3은 본 발명에 따른 입력되는 WML 문서 일실시예이고, 도 4는 도 3의 WML문서가 변환되어 xHTML 문서로 출력되는 일실시예를 나타낸 것이다. 즉 card별로 xHTML 문서를 생성하고 만약 href로 연결되는 부분이 #로 시작된다면, 이것은 변환이 이루어진 파일이기 때문에 변환 서버에서 그 파일을 찾아 브라우저로 보내게 된다. 그리고 xHTML 문서의 파일명은 card의 아이디값으로 정해지고 만약 아이디값이 없는 경우에는 임의의 값을 이용하여 파일명을 지정하게 된다.3 illustrates an embodiment of an input WML document according to the present invention, and FIG. 4 illustrates an embodiment in which the WML document of FIG. 3 is converted and output as an xHTML document. In other words, if you create an xHTML document for each card and the link to the href begins with #, this is the file that was converted and sent by the conversion server to the browser. The file name of the xHTML document is set to the ID value of the card. If there is no ID value, the file name is specified using an arbitrary value.

도 5는 본 발명에 따른 WML 태그와 상응되는 xHTML 태그를 나타낸 태그 대응도이다. 즉 WML 태그를 xHTML 태그로 바꾸어 줄 수 있는 경우에는 바꾸어 주고, 그렇지 못한 경우에는 버리거나 그에 상응하는 xHTML 태그들의 조합으로 표현을 한다. 빈 공간으로 남아 있는 것은 WML 태그에 대응되는 xHTML 태그가 없는 경우이다.5 is a tag correspondence diagram illustrating an xHTML tag corresponding to a WML tag according to the present invention. In other words, if a WML tag can be replaced with an xHTML tag, replace it. Otherwise, discard it or express it as a combination of xHTML tags. What is left blank is that there is no xHTML tag corresponding to the WML tag.

이상 설명한 바와 같이 WML 문서를 xHTML 문서로 변환하는 방법은, xHTML 문서가 3세대 언어로 거론되고 있는 상태에서 기존에 사용하던 WML 문서를 액세스하여 xHTML 문서로 변환시킴으로서, 기존의 문서를 수용하여 모바일 환경에서 사용가능하도록 하는 효과가 있다.As described above, the method for converting a WML document into an xHTML document is to access an existing WML document and convert it into an xHTML document while the xHTML document is mentioned in a third generation language. This has the effect of making it available in.

Claims (5)

WML(Wireless Markup Language)문서를 xHTML(eXtensible Hyper Text Markup Language)문서로 변환하는 방법에 있어서,In a method of converting a WML (Wireless Markup Language) document to an xHTML (eXtensible Hyper Text Markup Language) document, WML 문서를 입력받는 제 1단계;A first step of receiving a WML document; 상기 입력된 문서를 파싱(Parsing)하는 제 2단계;A second step of parsing the input document; 상기 파싱된 문서에서 문자를 조사하는 제 3단계;A third step of examining characters in the parsed document; 상기 파싱된 문서에서 태그(Tag)를 조사하는 제 4단계; 및A fourth step of inspecting a tag in the parsed document; And 조사된 태그가 xHTML 태그로 변환가능한 경우에는 그에 상응되는 태그로 변환하고, 그렇지 못한 태그는 버리거나 그에 상응되는 xHTML 태그들의 조합으로 표현하는 제 5단계로 구성되는 것을 특징으로 하는 WML 문서를 xHTML 문서로 변환하는 방법.If the inspected tag can be converted into an xHTML tag, the WML document is converted into an xHTML document. The WML document is converted into an xHTML document. How to convert. 제 1항에 있어서, 상기 제 3단계는,The method of claim 1, wherein the third step, 문자가 조사될 경우에는 택스트(Text)로 인식하여 문자 그대로 xHTML 문서 파일에 입력되는 과정을 거치도록 구성되는 것을 특징으로 하는 WML 문서를 xHTML 문서로 변환하는 방법.When a character is examined, WML document is converted into an xHTML document, characterized in that it is configured to be recognized as a text (Text) and literally entered into the xHTML document file. 제 1항에 있어서, 상기 제 3단계는,The method of claim 1, wherein the third step, EOF(End of File)일 경우에는 xHTML 문서로의 변환을 마치는 단계;In the case of an end of file (EOF), converting to an xHTML document; 변환된 xHTML 문서를 DTD(Document Type Definition) 체크하는 단계;Checking a document type definition (DTD) of the converted xHTML document; 체크 확인된 xHTML 문서를 제공하는 단계를 거치도록 구성되는 것을 특징으로 하는 WML 문서를 xHTML 문서로 변환하는 방법.A method for converting a WML document to an xHTML document, characterized in that it is configured to provide a checked-out xHTML document. 제 1항에 있어서, 상기 제 5단계는,The method of claim 1, wherein the fifth step, ‘< ’- 태그일 경우에 변환할 수 있는 태그는 xHTML 문서에서 상응되는 태그로 변환하고, 변환할 수 없는 태그는 버리는 과정을 거치도록 구성되는 것을 특징으로 하는 WML 문서를 xHTML 문서로 변환하는 방법.Tag that can be converted in case of '<'-tag is converted into corresponding tag in xHTML document and discarded tag that cannot be converted is discarded. . 제 1항에 있어서, 상기 제 5단계는,The method of claim 1, wherein the fifth step, 태그가 <card>일 경우에 xHTML 문서를 생성하고, </card>가 조사될 경우에는그때까지 생성된 xHTML 문서를 저장하고 닫는 과정을 거치도록 구성되는 것을 특징으로 하는 WML 문서를 xHTML 문서로 변환하는 방법.If the tag is <card>, create an xHTML document, and if </ card> is examined, convert the WML document to an xHTML document, which is configured to save and close the generated xHTML document until then. How to.
KR10-2000-0053530A 2000-09-08 2000-09-08 METHOD TO CONVERT WML INTO xHTML KR100398933B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-2000-0053530A KR100398933B1 (en) 2000-09-08 2000-09-08 METHOD TO CONVERT WML INTO xHTML

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-2000-0053530A KR100398933B1 (en) 2000-09-08 2000-09-08 METHOD TO CONVERT WML INTO xHTML

Publications (2)

Publication Number Publication Date
KR20020020399A true KR20020020399A (en) 2002-03-15
KR100398933B1 KR100398933B1 (en) 2003-09-22

Family

ID=19688275

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-2000-0053530A KR100398933B1 (en) 2000-09-08 2000-09-08 METHOD TO CONVERT WML INTO xHTML

Country Status (1)

Country Link
KR (1) KR100398933B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004023315A1 (en) * 2002-09-04 2004-03-18 Nytel Co., Ltd System and method for converting and transmitting data

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US2344197A (en) * 1941-11-27 1944-03-14 Henry H Barnard Control panel and the like
US6023714A (en) * 1997-04-24 2000-02-08 Microsoft Corporation Method and system for dynamically adapting the layout of a document to an output device
KR20010029147A (en) * 1999-09-29 2001-04-06 서평원 Internet service method for mobile phone
KR100402401B1 (en) * 1999-10-11 2003-10-22 채운들 The Method Of Document Translation Using The Next Generation Standard Markup Language
KR100426010B1 (en) * 2000-06-24 2004-04-03 한국전자북 주식회사 Method for Converting DeskTop Publishing Documents to XML documents

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004023315A1 (en) * 2002-09-04 2004-03-18 Nytel Co., Ltd System and method for converting and transmitting data

Also Published As

Publication number Publication date
KR100398933B1 (en) 2003-09-22

Similar Documents

Publication Publication Date Title
US7281205B2 (en) Hash compact XML parser
US8972854B2 (en) Graphical creation of a document conversion template
CN103942137B (en) Browser compatibility method of testing and device
CA2381251A1 (en) System and method for language extraction and encoding
US8078961B2 (en) SGML document validation using XML-based technologies
CN104461412B (en) Web page designated area Method of printing and system
CN106886551B (en) Method and device for displaying image by using markup language
US20180137108A1 (en) Translation synthesizer for analysis, amplification and remediation of linguistic data across a translation supply chain
US20020035580A1 (en) Computer readable medium containing HTML document generation program
US20070028164A1 (en) Computer readable storage medium and document processing method
KR100398933B1 (en) METHOD TO CONVERT WML INTO xHTML
CN109657244B (en) English long sentence automatic segmentation method and system
US10558981B1 (en) Methods systems and articles of manufacture for generating tax worksheet application
KR100631086B1 (en) Method and apparatus for text normalization using extensible markup language(xml)
JPH03260766A (en) Translating device with parenthesis generation deciding function
KR102095703B1 (en) An apparatus, method and recording medium for Markup parsing
Lancel et al. A grammar used for parsing and generation
KR100250443B1 (en) The compound document browser sgml and dssl
CN112068826A (en) Text input control method, system, electronic device and storage medium
JP2794919B2 (en) Machine translation equipment
Hufflen MlBibTEX: beyond LATEX
KR20020020400A (en) A xHTML Document Parsing Method at the Terminator using Wireless Internet Network
Nishiyama et al. A translation from the HTML DTD into a regular hedge grammar
KR20230142397A (en) System for providing english text editing service
De Vriend et al. Exploring XML-based technologies and procedures for quality evaluation from a real-life case perspective.

Legal Events

Date Code Title Description
A201 Request for examination
N231 Notification of change of applicant
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20120905

Year of fee payment: 10

FPAY Annual fee payment

Payment date: 20130904

Year of fee payment: 11

LAPS Lapse due to unpaid annual fee