Fwd: Re: selectTextAsHTML()

Frans Englich frans.englich at telia.com
Sun Jun 5 19:45:54 BST 2005


On Sunday 05 June 2005 17:55, David Faure wrote:
> On Saturday 04 June 2005 17:22, John Tapsell wrote:
> > 1.  Tags are uppercase.  They must be lowercase.
> > 2.  The META tag is not closed.
> > 3.  The BR tags are not closed.  Should be <br/>.
>
> Well, it's HTML, it's not XHTML.
>
> > My main goal is that the text is well-formed enough that I can run it
> > through xsltproc to apply my xhtml to SSML stylesheet without xsltproc
> > gagging and quiting.  Unclosed tags, in particular, will cause xsltproc
> > to error out. selectedTextAsHTML() seems to meet that requirement.
>
> I think nobody would object to a patch making toString() return
> XHTML-conformant stuff?

As taken out of the blue, I agree(dunno about details). It's easier to go from 
XHTML to HTML than the other way around. To exemplify Gary's XSLT, one could 
use the html output method to get HTML, if that was of interest.

Don't know if it's considering off-topic but in KDOM, serialization is handled 
by the Load-and-Save DOM API(kdenonbeta/kdom/ls).

Also, in the event of an XSLT implementation, the XHTML/HTML serializers 
should be designed to be able to be used independently(to put it in another 
way; it's economic to implement that if one has a need for sophisticated 
serialization).


Cheers,

		Frans




More information about the kfm-devel mailing list