|
| <prev next> |
How to compile wml files with XMLC ?: msg#00000java.enhydra.general
Dear colleagues, We are using XMLC to compile our HTML files. I wanted to generate both HTML and WML files now and to use them on the same PO. I found documentation on the web about how to write a PO for both types. I then tried to compile a WML file with XMLC but I have an error that I don't know how to solve. I read the xmlc documentation. It is said that you can compile either HTML or XML files. I thought that WML files are XML files. So should I compile WML files as HTML or XML files ? There is documentation only for the compilation of HTML files. I tried to compile with this command: xmlc -info -generate both -create-get-tag-methods -methods -extends XMLObjectImpl Consult.wml I tried with -extends HTMLObjectImpl -extends XMLObjectImpl but the error is the same. Also, I would like to generate a ConsultWMLImpl.java instead of a ConsultHTMLImpl.java. Why it is generating a HTMLImpl.java by default ? Here is the error: public class ConsultHTMLImpl extends XMLObjectImpl implements ConsultHTML, org.enhydra.xml.xmlc.XMLObject { [javac] ^ [javac] /Projets/Papillon/classes/XMLC Generated Source/main/presentation/wml/orig/ConsultHTMLImpl.java:18: main.presentation.wml.orig.ConsultHTMLImpl should be declared abstract; it does not define isURLAttribute(org.w3c.dom.Element,java.lang.String) in main.presentation.wml.orig.ConsultHTMLImpl Here is the Consult.wml: <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="no1" title="Card 1"> <p>Hello World!</p> <p>Une ligne en français !</p> <p>一つ線日本語で!</p> </card> <card id="no2" title="Card 2"> <p>Welcome to our WAP Tutorial!</p> </card> </wml> Thank you for your help! Mathieu Mathieu MANGEOT-LEREBOURS Visiting Researcher National Institute of Informatics Hitotsubashi 2-1-2-1913 Chiyoda-ku Tokyo 101-8430 Japan Tel: +81-3-4212-2672 Fax: +81-3-3556-1916 http://www-clips.imag.fr/geta/mathieu.mangeot Papillon project: www.papillon-dictionary.org
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Next by Date: | MS SOAP toolkit interop work-around, Steve Daly |
|---|---|
| Next by Thread: | MS SOAP toolkit interop work-around, Steve Daly |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |