[xml] Problem in uri.c ?

Date view Thread view Subject view Author view

From: Manuel Guesdon (mguesdon@oxymium.net)
Date: Sun Sep 17 2000 - 18:27:10 EDT


Hello,

I think there is a problem in uri.c (libxml v2.2.3) but tell me if I'm wrong...

I want to parse an html string (context created with xmlCreateDocParserCtxt) which begin with:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE HTML SYSTEM "xhtml1-transitional.dtd">
<gsweb name="PageTemplateFrame">

I use an external loader but the loader function receive null url and eid.

I've added traces in libxml and get this:

SAX.c 217 (in externalSubset) ExternalID=(null) SystemID=xhtml1-transitional.dtd
Here the SystemID is good

SAX.c 319 (in resolveEntity) systemId=xhtml1-transitional.dtd id=(null)
Still good

SAX.c 326 (in resolveEntity before xmlBuildURI) base=(null)

uri.c 1507 xmlBuildURI: URI=xhtml1-transitional.dtd base=(null)
Still Good

uri.c 1288 xmlParseURIReference: str=xhtml1-transitional.dtd
uri.c 1187 xmlParseAbsoluteURI: str=xhtml1-transitional.dtd
uri.c 765 xmlParseURIScheme: str=xhtml1-transitional.dtd
uri.c 777 xmlParseURIScheme: str= uri->scheme=xhtml1-transitional.dtd
Bad try: it' not an absolute URL

Try xmlParseRelativeURI
uri.c 1301 xmlParseURIReference: str=xhtml1-transitional.dtd
uri.c 1226 xmlParseRelativeURI: str=xhtml1-transitional.dtd
uri.c 1229 xmlParseRelativeURI: cur=xhtml1-transitional.dtd
uri.c 965 xmlParseURIRelSegment: str=xhtml1-transitional.dtd
uri.c 972 xmlParseURIRelSegment: cur=html1-transitional.dtd

===
Here we lost it !!!!
===

uri.c 979 xmlParseURIRelSegment: str=
uri.c 979 xmlParseURIRelSegment: uri->path=

uri.c 1265 xmlParseRelativeURI: cur=
uri.c 1267 xmlParseRelativeURI: str=
uri.c 1315 xmlParseURIReference: str=
uri.c 1320 xmlParseURIReference: str=
uri.c 1744 xmlBuildURI: val=(null)
SAX.c 333 url=(null) id=(null)
xmlIO.c 1590 xmlLoadExternalEntity url=(null) id=(null)

Manuel

--

---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Sep 17 2000 - 18:43:17 EDT