logo       

[no subject]: msg#00000

java.enhydra.xmlc



-----Original Message-----
From: David Li [mailto:david@xxxxxxxxxxxxxxxxx]
Sent: Sat 11/2/2002 8:48 AM
To: xmlc@xxxxxxxxxxx
Cc:
Subject: Re: Re[2]: Xmlc: Parsing not correct with '/> ' notation?



The XHTML extension is the XHTML DOM. XMLC should be able to parse
XHTML. Do not name your file .html and it will be parsed by the XML
parser rather then HTML parser.

Moreover, the default parser used by XMLC is JTidy which is also
supposed to be able to handle XHTML.

David Li

On Saturday, Nov 2, 2002, at 06:59 Asia/Tokyo, Austin, Kevin C wrote:

> I am not familiar with the XHTML extensions you mention below. Yes,
> one
> would expect the XHTML extensions to be able to parse XHTML
documents.
> :-)
>
> That said, it sounds like Enrico is using the same version of XMLC
> that I
> am, that doesn't support XHTML documents, and therefore should
upgrade.
>
> -----Original Message-----
> From: Jacob Kjome [mailto:hoju@xxxxxxxx]
> Sent: Friday, November 01, 2002 4:51 PM
> To: Austin, Kevin C
> Subject: Re[2]: Xmlc: Parsing not correct with '/> ' notation?
>
>
> Hello Kevin,
>
> Well, it should be able to using the XHTML extensions for XMLC in
> xhtml.jar, should it not?
>
> I'm not very familiar with using the new XHTML extensions for XMLC,
> but I'm not sure what the point of the xhtml packages would be if XMLC
> couldn't use it to parse an XHTML document?
>
> Jake
>
> Friday, November 01, 2002, 3:23:58 PM, you wrote:
>
> AKC> <input ... /> is not HTML - it is XHTML - XMLC cannot correctly
> parse
> XHTML.
>
> AKC> -----Original Message-----
> AKC> From: Enrico Brunetta [mailto:enrico@xxxxxxxxxx]
> AKC> Sent: Friday, November 01, 2002 4:14 PM
> AKC> To: xmlc@xxxxxxxxxxx
> AKC> Subject: Xmlc: Parsing not correct with '/> ' notation?
>
>
> AKC> Here are examples of how XMLC parser generates DOM with or
> without "/"
> AKC> at the end of input and br tags. It seems that when you have the
> '/' at
> AKC> the end of tag, the parsing is incorrect. Am I doing something
> wrong,
> or
> AKC> is this a known issue?
>
> AKC> Thanks,
> AKC> Enrico.
>
>
>
>
>
> AKC> /************************** Sample.html
> **************************/
> AKC> <html>
> AKC> <head>
> AKC> <title>Sample HTML</title>
> AKC> <meta http-equiv="content-type" content="text/html;
> charset=ISO-8859-1">>
> AKC> </head>
>
> AKC> <body>
> AKC> <table>
> AKC> <tr><td>
> AKC> <input id="formInput1" type="text" size="90"
> value=""
> />
> AKC> </td></tr>
> AKC> </table>
> AKC> <table>
> AKC> <tr><td>
> AKC> <input id="formInput2" type="text" size="90"
> value=""
> />
> AKC> </td></tr>
> AKC> </table>
> AKC> </body>
> AKC> </html>
>
> AKC>
> /
>
***********************************************************************
> AKC> /
>
> AKC> /************************** Generated DOM (with "/" at the end
of
> the
> AKC> input tag) *************/
> AKC> DOM hierarchy:
> AKC> LazyHTMLDocument%[T]:
> AKC> HTMLHtmlElementImpl: HTML
> AKC> HTMLHeadElementImpl: HEAD
> AKC> HTMLTitleElementImpl: TITLE
> AKC> LazyText: Sample HTML
> AKC> HTMLMetaElementImpl: META: content="text/html;
> AKC> charset=ISO-8859-1" http-equiv="content-type"
> AKC> HTMLBodyElementImpl: BODY
> AKC> HTMLTableElementImpl: TABLE
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> AKC> id="formInput1" size="90" type="text" value=""
> AKC> LazyText:
> AKC> HTMLTableElementImpl: TABLE //The
> hierarchy
> is
> AKC> not correct, table is nested
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> AKC> id="formInput2" size="90" type="text" value=""
> AKC> LazyText:
>
> AKC>
> /
>
***********************************************************************
> AKC> /
>
> AKC> /************************** Generated DOM (without "/" at the
end
> of
> the
> AKC> input tag) valid and with correct hierarchy *************/
>
> AKC> DOM hierarchy:
> AKC> LazyHTMLDocument%[T]:
> AKC> HTMLHtmlElementImpl: HTML
> AKC> HTMLHeadElementImpl: HEAD
> AKC> HTMLTitleElementImpl: TITLE
> AKC> LazyText: Sample HTML
> AKC> HTMLMetaElementImpl: META: content="text/html;
> AKC> charset=ISO-8859-1" http-equiv="content-type"
> AKC> HTMLBodyElementImpl: BODY
> AKC> HTMLTableElementImpl: TABLE
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> id="formInput1"
> AKC> size="90" type="text" value=""
> AKC> LazyText:
> AKC> HTMLTableElementImpl: TABLE
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> id="formInput2"
> AKC> size="90" type="text" value=""
> AKC> LazyText:
>
> AKC>
> /
>
***********************************************************************
> AKC> /
>
> AKC> /************************** Sample2.html
> **************************/
> AKC> <html>
> AKC> <head>
> AKC> <title>Sample HTML</title>
> AKC> <meta http-equiv="content-type" content="text/html;
> charset=ISO-8859-1">>
> AKC> </head>
>
> AKC> <body>
> AKC> <table>
> AKC> <tr><td>
> AKC> <input id="formInput1" type="text" size="90"
> value="">
> AKC> <br />
> AKC> </td></tr>
> AKC> </table>
> AKC> <table>
> AKC> <tr><td>
> AKC> <input id="formInput2" type="text" size="90"
> value="">
> AKC> </td></tr>
> AKC> </table>
> AKC> </body>
> AKC> </html>
>
> AKC>
> /
>
***********************************************************************
> AKC> /
>
> AKC> /************************** Generated DOM (with "/" at the end
of
> the
> br
> AKC> tag) *************/
> AKC> DOM hierarchy:
> AKC> LazyHTMLDocument%[T]:
> AKC> HTMLHtmlElementImpl: HTML
> AKC> HTMLHeadElementImpl: HEAD
> AKC> HTMLTitleElementImpl: TITLE
> AKC> LazyText: Sample HTML
> AKC> HTMLMetaElementImpl: META: content="text/html;
> AKC> charset=ISO-8859-1" http-equiv="content-type"
> AKC> HTMLBodyElementImpl: BODY
> AKC> HTMLTableElementImpl: TABLE
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> id="formInput1"
> AKC> size="90" type="text" value=""
> AKC> LazyText:
> AKC> HTMLBRElementImpl: BR
> AKC> LazyText:
> AKC> HTMLTableElementImpl: TABLE // The hierarchy
> is not
> AKC> correct, table is nested
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> AKC> id="formInput2" size="90" type="text" value=""
> AKC> LazyText:
> AKC>
> /
>
***********************************************************************
> AKC> /
>
> AKC> /************************** Generated DOM (without "/" at the
end
> of
> the
> AKC> br tag) valid and with correct hierarchy *************/
>
> AKC> DOM hierarchy:
> AKC> LazyHTMLDocument%[T]:
> AKC> HTMLHtmlElementImpl: HTML
> AKC> HTMLHeadElementImpl: HEAD
> AKC> HTMLTitleElementImpl: TITLE
> AKC> LazyText: Sample HTML
> AKC> HTMLMetaElementImpl: META: content="text/html;
> AKC> charset=ISO-8859-1" http-equiv="content-type"
> AKC> HTMLBodyElementImpl: BODY
> AKC> HTMLTableElementImpl: TABLE
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
> AKC> HTMLInputElementImpl: INPUT:
> id="formInput1"
> AKC> size="90" type="text" value=""
> AKC> LazyText:
> AKC> HTMLBRElementImpl: BR
> AKC> LazyText:
> AKC> HTMLTableElementImpl: TABLE
> AKC> HTMLTableRowElementImpl: TR
> AKC> HTMLTableCellElementImpl: TD
>
> AKC> HTMLInputElementImpl: INPUT:
> id="formInput2"
> AKC> size="90" type="text" value=""
> AKC> LazyText:
>
> AKC>
> /
>
***********************************************************************
> AKC> /
>
> AKC> _______________________________________________
> AKC> XMLC mailing list
> AKC> XMLC@xxxxxxxxxxx
> AKC> http://www.enhydra.org/mailman/listinfo.cgi/xmlc
>
> AKC>
>
-----------------------------------------------------------------------
> -----
> --
> AKC> Notice: This e-mail message, together with any attachments,
> contains
> information of Merck & Co., Inc. (Whitehouse Station, New Jersey,
USA)
> that
> may be confidential, proprietary copyrighted
> AKC> and/or legally privileged, and is intended solely for the use of
> the
> individual or entity named on this message. If you are not the
intended
> recipient, and have received this message in error,
> AKC> please immediately return this by e-mail and then delete it.
>
> AKC>
>
=======================================================================
> =====
> ==
>
> AKC> _______________________________________________
> AKC> XMLC mailing list
> AKC> XMLC@xxxxxxxxxxx
> AKC> http://www.enhydra.org/mailman/listinfo.cgi/xmlc
>
>
>
> --
> Best regards,
> Jacob mailto:hoju@xxxxxxxx
>
> _______________________________________________
> XMLC mailing list
> XMLC@xxxxxxxxxxx
> http://www.enhydra.org/mailman/listinfo.cgi/xmlc
>
>
>
-----------------------------------------------------------------------
> -------
> Notice: This e-mail message, together with any attachments, contains
> information of Merck & Co., Inc. (Whitehouse Station, New Jersey,
USA)
> that may be confidential, proprietary copyrighted and/or legally
> privileged, and is intended solely for the use of the individual or
> entity named in this message. If you are not the intended recipient,
> and have received this message in error, please immediately return
> this by e-mail and then delete it.
>
>
=======================================================================
> =======
>
> _______________________________________________
> XMLC mailing list
> XMLC@xxxxxxxxxxx
> http://www.enhydra.org/mailman/listinfo.cgi/xmlc

_______________________________________________
XMLC mailing list
XMLC@xxxxxxxxxxx
http://www.enhydra.org/mailman/listinfo.cgi/xmlc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise