Hi All, Sorry for flooding the basex mailing list :( .
We have this very simple HTML for some testing purposes. And we upload it through basexgui (HTML file type).
<html> <body> <h1>Hello world!</h1> <ul> <li>service</li> <li>advancedassociationquery</li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </body> </html>
but when serve it to the browser we get back the following html response where the list is flattened.
<html> <body> <ul> <li>service</li> <li>advancedassociationquery</li> </ul> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </body> </html>
After validating we've seen that, according to W3, the STRICT HTML compliant form is the following:
<html xmlns="http://www.w3.org/1999/xhtml"> <head><title>A title</title></head> <body> <ul> <li>service</li> <li>advancedassociationquery</li> <li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </body> </html>
But even after uploading this STRICT HTML through basexgui we got back the flattened version. Our need is to just store and render the HTML with out any further processing. Also the HTML is generated using a tool.
The thing is that the STRICT HTML file is served correctly when uploaded through the REST interface of BaseX (Firefox Poster with PUT method) whereas the incorrect file is served the wrong way(flattened) even if it uploaded through the REST interface.
This sums up to an inconsistent behavior.
Thanks and Regards, Marco & Seenivasan
Hi Marco and Seenivasan,
You seem to be missing a </ul> between </li> and </body>. Could that be it?
Regards,
Ben
On 31 July 2012 12:38, Seenivasan Gunabalan seenivasan.gunabalan@dedalus.eu wrote:
Hi All, Sorry for flooding the basex mailing list :( .
We have this very simple HTML for some testing purposes. And we upload it through basexgui (HTML file type).
<html> <body> <h1>Hello world!</h1> <ul> <li>service</li> <li>advancedassociationquery</li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </body> </html>
but when serve it to the browser we get back the following html response where the list is flattened.
<html> <body> <ul> <li>service</li> <li>advancedassociationquery</li> </ul> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </body> </html>
After validating we've seen that, according to W3, the STRICT HTML compliant form is the following:
<html xmlns="http://www.w3.org/1999/xhtml"> <head><title>A title</title></head> <body> <ul> <li>service</li> <li>advancedassociationquery</li> <li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </body> </html>
But even after uploading this STRICT HTML through basexgui we got back the flattened version. Our need is to just store and render the HTML with out any further processing. Also the HTML is generated using a tool.
The thing is that the STRICT HTML file is served correctly when uploaded through the REST interface of BaseX (Firefox Poster with PUT method) whereas the incorrect file is served the wrong way(flattened) even if it uploaded through the REST interface.
This sums up to an inconsistent behavior.
Thanks and Regards, Marco & Seenivasan
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Thanks Ben.
Sorry copy & paste error . Thanks for pointing it out.
we actually have that </ul> between </li> and </body> in our version here, yet the issue persists.
<html> <body> <h1>Hello world!</h1> <ul> <li>service</li> <li>advancedassociationquery</li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </ul> </body> </html>
On 07/31/2012 01:04 PM, Ben Companjen wrote:
Hi Marco and Seenivasan,
You seem to be missing a </ul> between </li> and </body>. Could that be it?
Regards,
Ben
On 31 July 2012 12:38, Seenivasan Gunabalan seenivasan.gunabalan@dedalus.eu wrote:
Hi All, Sorry for flooding the basex mailing list :( .
We have this very simple HTML for some testing purposes. And we upload it through basexgui (HTML file type).
<html> <body> <h1>Hello world!</h1> <ul> <li>service</li> <li>advancedassociationquery</li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </body> </html>
but when serve it to the browser we get back the following html response where the list is flattened.
<html> <body> <ul> <li>service</li> <li>advancedassociationquery</li> </ul> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </body> </html>
After validating we've seen that, according to W3, the STRICT HTML compliant form is the following:
<html xmlns="http://www.w3.org/1999/xhtml"> <head><title>A title</title></head> <body> <ul> <li>service</li> <li>advancedassociationquery</li> <li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </body> </html>
But even after uploading this STRICT HTML through basexgui we got back the flattened version. Our need is to just store and render the HTML with out any further processing. Also the HTML is generated using a tool.
The thing is that the STRICT HTML file is served correctly when uploaded through the REST interface of BaseX (Firefox Poster with PUT method) whereas the incorrect file is served the wrong way(flattened) even if it uploaded through the REST interface.
This sums up to an inconsistent behavior.
Thanks and Regards, Marco & Seenivasan
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
Hi Seenivasan,
Zitat von Seenivasan Gunabalan seenivasan.gunabalan@dedalus.eu:
Sorry copy & paste error . Thanks for pointing it out.
we actually have that </ul> between </li> and </body> in our version here, yet the issue persists.
<html> <body> <h1>Hello world!</h1> <ul> <li>service</li> <li>advancedassociationquery</li> <ul> <li>service2</li> <li>advancedassociationquery2</li> </ul> </li> </ul> </body> </html>
Where does the closing </li> tag belong to? The one between the two </ul>. Does this strange behaviour persist if you get rid of this </li> ?
Best regards
Cerstin
basex-talk@mailman.uni-konstanz.de