You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by yi...@netscape.net on 2002/05/11 07:45:22 UTC
Multiple line Text in Neko
If I have element with text which has multiple lines, i.e.
<STYLE type=text/css>.serif {
FONT-SIZE: small; FONT-FAMILY: times,serif
}
</STYLE>
Does Neko find out all the text for the node first and then create 1 Text node with all the text and then append that node to the STYLE node?
Or does Neko create Text Node for the FIRST line only in the beginning and then append text from the subsequence lines to that Text Node until it reaches the end of the Element?
If it is the second case, how can I determine the STYLE element and the TEXT node (with all the text) are completely built?
Thanks.
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop@Netscape! http://shopnow.netscape.com/
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org
Re: Multiple line Text in Neko
Posted by Andy Clark <an...@apache.org>.
yinglcs@netscape.net wrote:
> If I have element with text which has multiple lines, i.e.
>
> <STYLE type=text/css>.serif {
> FONT-SIZE: small; FONT-FAMILY: times,serif
> }
> </STYLE>
>
> Does Neko find out all the text for the node first and then
> create 1 Text node with all the text and then append that node
> to the STYLE node?
If you are using SAX, then multiple callbacks to the characters
method can occur. However, the DOM spec requires that adjacent
text be converted into a single Text node. (This only applies
to the original DOM construction, not subsequent editing in
your application.) Since NekoHTML relies on the DOM-building
code in Xerces2, then that should work just fine.
--
Andy Clark * andyc@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-user-help@xml.apache.org