Re: Release of a new set of XML/XSLT libraries



On Fri, May 04, 2001 at 09:52:21AM -0600, John Fleck wrote:
> On Fri, May 04, 2001 at 06:37:45AM -0400, Alexander Kirillov wrote:
> > Dear John:
> > can you post somewhere this "gnome-db2html3, the new xml->html
> > thingie"? I know it is for testing only, but I'd like to play with it
> > after I install the latest libxml/xslt and see how fast it works. 
> > 
> > Best,
> > Sasha
> > 
> 
> I hope to have something ready for just that soon (prolly not for two
> weeks - I'm on work travel all next week). In the meantime, if you
> install libxml2 and libxslt, you will have DV's xsltproc program,
> which does essentially what mine does minus the sgml DocBook
> processing (unless DV added a command line flag to do that in the
> version released this week). This allows you to test and play.

  No I forgot to add it, I will commit it to CVS, untested (but simple)
patch enclosed.

> It has a --timing flag. It does not do catalog
> resolution, which is one of the issues to be worked out, so the
> document parsing is slow because it goes onto the net to get the
> dtd. Dealing with this is on the todo list. In the meantime,
> hard-coding the path to the dtd will give you some idea of speed.

  yep the cataloging is one of the crucial areas now.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
*** libxslt/xsltproc.c	2001/04/30 17:33:46	1.22
--- libxslt/xsltproc.c	2001/05/04 17:05:19
***************
*** 13,18 ****
--- 13,21 ----
  #include <libxml/xmlmemory.h>
  #include <libxml/debugXML.h>
  #include <libxml/HTMLtree.h>
+ #ifdef LIBXML_DOCB_ENABLED
+ #include <libxml/DOCBparser.h>
+ #endif
  #ifdef LIBXML_XINCLUDE_ENABLED
  #include <libxml/xinclude.h>
  #endif
***************
*** 28,33 ****
--- 31,39 ----
  static int timing = 0;
  static int novalid = 0;
  static int noout = 0;
+ #ifdef LIBXML_DOCB_ENABLED
+ static int docbook = 0;
+ #endif
  #ifdef LIBXML_HTML_ENABLED
  static int html = 0;
  #endif
***************
*** 57,62 ****
--- 63,71 ----
  #ifdef LIBXML_HTML_ENABLED
  	printf("      --html: the input document is(are) an HTML file(s)\n");
  #endif
+ #ifdef LIBXML_DOCB_ENABLED
+ 	printf("      --docbook: the input document is SGML docbook\n");
+ #endif
  	printf("      --param name value\n");
  	return(0);
      }
***************
*** 84,89 ****
--- 93,103 ----
  	} else if ((!strcmp(argv[i], "-noout")) ||
  		   (!strcmp(argv[i], "--noout"))) {
  	    noout++;
+ #ifdef LIBXML_DOCB_ENABLED
+ 	} else if ((!strcmp(argv[i], "-docbook")) ||
+ 		   (!strcmp(argv[i], "--docbook"))) {
+ 	    docbook++;
+ #endif
  #ifdef LIBXML_HTML_ENABLED
  	} else if ((!strcmp(argv[i], "-html")) ||
  		   (!strcmp(argv[i], "--html"))) {
***************
*** 164,169 ****
--- 178,188 ----
  #ifdef LIBXML_HTML_ENABLED
  	    if (html)
  		doc = htmlParseFile(argv[i], NULL);
+ 	    else
+ #endif
+ #ifdef LIBXML_HTML_ENABLED
+ 	    if (docbook)
+ 		doc = docbParseFile(argv[i], NULL);
  	    else
  #endif
  		doc = xmlParseFile(argv[i]);


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