Re[4]: [xml] libxml2 add <p> tag



On Mon, 7 Oct 2002 10:49:37 -0400 Daniel Veillard <veillard redhat com> wrote:

| On Mon, Oct 07, 2002 at 03:09:50PM +0200, Support wrote:
| > On Mon, 7 Oct 2002 05:33:21 -0400 Daniel Veillard <veillard redhat com> wrote:
| > >|   Yup, there is an associated bug report which I didn't closed though
| > >| it's in fixed state:
| > >|   http://bugzilla.gnome.org/show_bug.cgi?id=87235
| > >| 
| > >|   I should probably apply your last suggestion, though it would change
| > >| the output of nearly all regression tests,
| > 
| > Thanks. So it's corrected in the cvs versionor already in a released one ?
| > 
| > Could it be possible to introduce a way to deactivacte the 'features' ?
| > In GNUstepWeb (www.gnustepweb.com), we also need to avoid <html><body> tag additions. I've made a 
workaround to
| avoid
| > <html><body> additions for included html page parts (composant) but if we start to have other tag 
addition,
| things we'll
| > be harder :-(.
| 
|   use htmlHandleOmittedElem()
| 
|   http://xmlsoft.org/search.php?query=htmlHandleOmittedElem

Thank you but this doesn't seems OK. I 've tried with version 2.4.25

Parsing

        <gsweb name="UploadFile">Upload</gsweb>/<gsweb name="ProcessFile">Processing</gsweb>

with a modifified xmllint with call htmlHandleOmittedElem(0); and now I get:

<?xml version="1.0" standalone="yes"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd";>
<gsweb name="UploadFile">Upload<p>/<gsweb name="ProcessFile">Processing</gsweb></p></gsweb>

There's still a <p></p> added. And the 2nd gsweb tag is included in the first one.

Is there a way to process unknown tags are "standard tag" (i.e. like this <aTag>...</aTag>) and don't add <p>
tags ?

Manuel

--
______________________________________________________________________
Manuel Guesdon - OXYMIUM <mguesdon oxymium net>
14 rue Jean-Baptiste Clement  -  93200 Saint-Denis  -  France
Tel: +33 1 4940 0999  -  Fax: +33 1 4940 0998





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]