Markus,
Can you use a frame instead? Then anything that happens in the frame won't affect anything in the other parts of the page.
Ciao,
Jonathan O'Connor
XCOM Dublin
Inactive hide details for Markus Wiederkehr <[EMAIL PROTECTED]>Markus Wiederkehr <[EMAIL PROTECTED]>


          Markus Wiederkehr <[EMAIL PROTECTED]>

          30/06/2005 10:33

          Please respond to
          "Tapestry users" <[email protected]>

To

Tapestry users <[email protected]>

cc


Subject

[OT] Tool to simplify HTML

Sorry if this question is a bit off topic, but I thought people on
this mailing list might know...

I'm working on a Tapestry application that has to display arbitrary
HTML files inline (like GMail does when you receive an HTML e-mail,
for example). So basically I want to develop a Tapestry component that
can render an HTML file.

The obvious requirement is that I don't want my page to be corrupted
by the HTML file. So I would have to remove /bad/ elements like
SCRIPT, /bad/ attributes like ID or NAME, etc. But in addition the
result also has to be compliant to XHTML 1.0 Transitional, no matter
how sloppy the original HTML file is.

I tried to run the HTML through NekoHTML to create a DOM. Then I tried
to remove bad elements and attributes from that DOM, but still the
result might not be XHTML compliant due to missing or misplaced
elements. So that approach looks like a lot of work...

Has anyone done something like this or has anyone a better idea how to
accomplish this?

Thanks,

Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





*** XCOM AG Legal Disclaimer ***

Diese E-Mail einschliesslich ihrer Anhaenge ist vertraulich und ist allein für den Gebrauch durch den vorgesehenen Empfaenger bestimmt. Dritten ist das Lesen, Verteilen oder Weiterleiten dieser E-Mail untersagt. Wir bitten, eine fehlgeleitete E-Mail unverzueglich vollstaendig zu loeschen und uns eine Nachricht zukommen zu lassen.

This email may contain material that is confidential and for the sole use of the intended recipient. Any review, distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.

Reply via email to