HTML got changes after uploading into BaseX
Tuesday, 31 July 2012 · 4 messages
SG
Seenivasan Gunabalan31 Jul 2012 12:38 #
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
BC
Ben Companjen31 Jul 2012 13:04 #
Hi Marco and Seenivasan,
You seem to be missing a </ul> between </li> and </body>. Could that be it?
Regards,
Ben
Quoted text · Seenivasan Gunabalan · 76 lines
On 31 July 2012 12:38, Seenivasan Gunabalan <seenivasan.gunabalan at 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 at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
SG
Seenivasan Gunabalan31 Jul 2012 14:51 #
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>Quoted text · Ben Companjen · 85 lines
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 at 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 at mailman.uni-konstanz.de >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
CM
Cerstin Mahlow31 Jul 2012 15:13 #
Hi Seenivasan,
Zitat von Seenivasan Gunabalan <seenivasan.gunabalan at dedalus.eu>:
Quoted text · Seenivasan Gunabalan · 20 lines
> 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
--
Dr. phil. Cerstin Mahlow
Universität Basel
Departement Sprach- und Literaturwissenschaften
Fachbereich Deutsche Sprach- und Literaturwissenschaft
Nadelberg 4
4051 Basel
Schweiz
Tel: +41 61 267 07 65
Fax: +41 61 267 34 40
Mail: cerstin.mahlow at unibas.ch
Web: http://www.oldphras.net
---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program.
Written for BaseX 7.3. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery