[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tapestry-user
Subject:    Re: [OT] Tool to simplify HTML
From:       "Jonathan O'Connor" <Jonathan.O'Connor () xcom ! de>
Date:       2005-06-30 12:29:55
Message-ID: OFCCDECB1F.85E528AC-ON80257030.00447C86-80257030.0044A849 () xcom ! de
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

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


                                                                           
             Markus Wiederkehr                                             
             <markus.wiederkeh                                             
             r@gmail.com>                                               To 
                                       Tapestry users                      
             30/06/2005 10:33          <tapestry-user@jakarta.apache.org>  
                                                                        cc 
                                                                           
             Please respond to                                     Subject 
             "Tapestry users"          [OT] Tool to simplify HTML          
             <tapestry-user@ja                                             
             karta.apache.org>                                             
                                                                           
                                                                           
                                                                           
                                                                           




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: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org





*** 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.
[Attachment #5 (text/html)]

<html><body>
<p>Markus,<br>
Can you use a frame instead? Then anything that happens in the frame won't affect \
anything in the other parts of the page.<br> Ciao,<br>
Jonathan O'Connor<br>
XCOM Dublin<br>
<img src="cid:10__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" width="16" height="16" \
alt="Inactive hide details for Markus Wiederkehr \
&lt;markus.wiederkehr@gmail.com&gt;">Markus Wiederkehr \
&lt;markus.wiederkehr@gmail.com&gt;<br> <br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td \
style="background-image:url(cid:20__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de); \
background-repeat: no-repeat; " width="40%"> <ul>
<ul>
<ul>
<ul><b><font size="2">Markus Wiederkehr \
&lt;markus.wiederkehr@gmail.com&gt;</font></b><font size="2"> </font> <p><font \
size="2">30/06/2005 10:33</font> <table border="1">
<tr valign="top"><td width="168" bgcolor="#FFFFFF"><div align="center"><font \
size="2">Please respond to<br> &quot;Tapestry users&quot; \
&lt;tapestry-user@jakarta.apache.org&gt;</font></div></td></tr> </table>
</ul>
</ul>
</ul>
</ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="1%" valign="middle"><img \
src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" height="1" \
width="58" alt=""><br> <div align="right"><font size="2">To</font></div></td><td \
width="100%"><img src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" \
height="1" width="1" alt=""><br> <font size="2">Tapestry users \
&lt;tapestry-user@jakarta.apache.org&gt;</font></td></tr>

<tr valign="top"><td width="1%" valign="middle"><img \
src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" height="1" \
width="58" alt=""><br> <div align="right"><font size="2">cc</font></div></td><td \
width="100%"><img src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" \
height="1" width="1" alt=""><br> </td></tr>

<tr valign="top"><td width="1%" valign="middle"><img \
src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" height="1" \
width="58" alt=""><br> <div align="right"><font size="2">Subject</font></div></td><td \
width="100%"><img src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" \
height="1" width="1" alt=""><br> <font size="2">[OT] Tool to simplify \
HTML</font></td></tr> </table>

<table border="0" cellspacing="0" cellpadding="0">
<tr valign="top"><td width="58"><img \
src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" height="1" \
width="1" alt=""></td><td width="336"><img \
src="cid:30__=0FBBFAA3DFD7FA168f9e8a93df938690@xcom.de" border="0" height="1" \
width="1" alt=""></td></tr> </table>
</td></tr>
</table>
<br>
<tt>Sorry if this question is a bit off topic, but I thought people on<br>
this mailing list might know...<br>
<br>
I'm working on a Tapestry application that has to display arbitrary<br>
HTML files inline (like GMail does when you receive an HTML e-mail,<br>
for example). So basically I want to develop a Tapestry component that<br>
can render an HTML file.<br>
<br>
The obvious requirement is that I don't want my page to be corrupted<br>
by the HTML file. So I would have to remove /bad/ elements like<br>
SCRIPT, /bad/ attributes like ID or NAME, etc. But in addition the<br>
result also has to be compliant to XHTML 1.0 Transitional, no matter<br>
how sloppy the original HTML file is.<br>
<br>
I tried to run the HTML through NekoHTML to create a DOM. Then I tried<br>
to remove bad elements and attributes from that DOM, but still the<br>
result might not be XHTML compliant due to missing or misplaced<br>
elements. So that approach looks like a lot of work...<br>
<br>
Has anyone done something like this or has anyone a better idea how to<br>
accomplish this?<br>
<br>
Thanks,<br>
<br>
Markus<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org<br>
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org<br>
<br>
</tt><br>
<br>
<br>
<br>
*** XCOM AG Legal Disclaimer ***<br>
<br>
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.<br> \
<br> 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.<br> </body></html>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic