Re: Spirit for XML file parsing

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 11:36:43PM +0200, Lars Gullik Bjønnes wrote: > | Confirming bugs needs web access. I currently have a choice between > | either net access and no time at all, or no net, but a couple of > | minutes to spare. I.e. I can handle offline mail and news, but no http. > > > | When

Re: Spirit for XML file parsing

2004-10-22 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 01:41:04PM +0100, Angus Leeming wrote: > Andre Poenitz wrote: > > May I suggest a slightly different approach? > > > > Let's have some MetaInset that's a proper LyX inset, i.e. deriving > > from InsetBase, but which mainly acts as a data storage capable to > > store attrib

Re: Spirit for XML file parsing

2004-10-19 Thread John Levon
On Tue, Oct 19, 2004 at 04:45:55PM +0200, Lars Gullik Bj?nnes wrote: > what I want (future stuff) is to have a nice xml file format, that is > expressive enought to produce docbook, latex, ascii etc. from. With no > direct support inside the LyX binary for this to happen. Ah, XSLT, right?! john

Re: Spirit for XML file parsing

2004-10-19 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] writes: | On Tue, 19 Oct 2004, Lars Gullik Bjønnes wrote: > >> And I also admit that I don't want LyX as a DocBook editor, just as I >> don't want LyX as a LaTeX editor. > | But do have anything against LyX being able to produce DocBooks? | (It's the specificness that you don't l

Re: Spirit for XML file parsing

2004-10-19 Thread chr
On Tue, 19 Oct 2004, Lars Gullik Bjønnes wrote: > And I also admit that I don't want LyX as a DocBook editor, just as I > don't want LyX as a LaTeX editor. But do have anything against LyX being able to produce DocBooks? (It's the specificness that you don't like, right?) /Christian -- Christi

Re: Spirit for XML file parsing

2004-10-19 Thread Lars Gullik Bjønnes
Andreas Vox <[EMAIL PROTECTED]> writes: | John Levon <[EMAIL PROTECTED]> writes: > >> I like Andreas Vox's recently stuff for example (I still >> think LyX can one day be an excellent DocBook editor) > | | So you didn't see the bugs which crept in? | (No, I'm not talking about spurious spaces! ;-

Re: Spirit for XML file parsing

2004-10-19 Thread Andreas Vox
John Levon <[EMAIL PROTECTED]> writes: > I like Andreas Vox's recently stuff for example (I still > think LyX can one day be an excellent DocBook editor) So you didn't see the bugs which crept in? (No, I'm not talking about spurious spaces! ;-) ) For anyone to test how far LyX is from an excell

Re: Spirit for XML file parsing

2004-10-19 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Mon, Oct 18, 2004 at 12:37:37PM +0200, Lars Gullik Bjønnes wrote: >> Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> >> >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: >> > >> | Lars> But is not just about resolving, but also abo

Re: Spirit for XML file parsing

2004-10-18 Thread John Levon
On Mon, Oct 18, 2004 at 09:56:00PM +0200, Lars Gullik Bj?nnes wrote: > | On Mon, Oct 18, 2004 at 12:37:37PM +0200, Lars Gullik Bj?nnes wrote: > > > >> But we need more, and as I said in another mail: Just about everyone > >> (except from the submitter himself) can confirm a bug. > >> You don't nee

Re: Spirit for XML file parsing

2004-10-18 Thread José Abílio Oliveira Matos
On Mon, Oct 18, 2004 at 09:52:46PM +0200, Andre Poenitz wrote: > > That's not entirely true. I didn't said that it was true, but that is the perception of the moment. > Firstly, 1.4.0 core structure is much simpler than 1.3.x, so even for > someone starting core work from scratch it's not the

Re: Spirit for XML file parsing

2004-10-18 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 09:37:37AM +0100, José Abílio Oliveira Matos wrote: > On Mon, Oct 18, 2004 at 10:10:40AM +0200, Jean-Marc Lasgouttes wrote: > > > > Andre> Especially in times of freeze when every minute that's spend on > > Andre> LyX goes into bugfixing. > > > > Sure. I have to say that I

Re: Spirit for XML file parsing

2004-10-18 Thread Andre Poenitz
On Mon, Oct 18, 2004 at 12:37:37PM +0200, Lars Gullik Bjønnes wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > > | Lars> But is not just about resolving, but also about confirming that > | Lars> it is a real bug. > >

Re: Spirit for XML file parsing

2004-10-18 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Mon, Oct 18, 2004 at 12:37:37PM +0200, Lars Gullik Bj?nnes wrote: > >> But we need more, and as I said in another mail: Just about everyone >> (except from the submitter himself) can confirm a bug. >> You don't need any particular skills (most often), ju

Re: Spirit for XML file parsing

2004-10-18 Thread John Levon
On Mon, Oct 18, 2004 at 12:37:37PM +0200, Lars Gullik Bj?nnes wrote: > But we need more, and as I said in another mail: Just about everyone > (except from the submitter himself) can confirm a bug. > You don't need any particular skills (most often), just the time to > check if the reported problem

Re: Spirit for XML file parsing

2004-10-18 Thread Angus Leeming
Andre Poenitz wrote: > May I suggest a slightly different approach? > > Let's have some MetaInset that's a proper LyX inset, i.e. deriving > from InsetBase, but which mainly acts as a data storage capable to > store attribute and CDATA contents. The parser (expat or whatever) > only generates a t

Re: Spirit for XML file parsing

2004-10-18 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> But is not just about resolving, but also about confirming that | Lars> it is a real bug. > | I did some of that, too ;) I even fixed one. How good of you. But we need more

Re: Spirit for XML file parsing

2004-10-18 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> But is not just about resolving, but also about confirming that Lars> it is a real bug. I did some of that, too ;) I even fixed one. JMarc

Re: Spirit for XML file parsing

2004-10-18 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Help get bugzilla into a better state and it will (at least for | Lars> me) be a bit easier to work on bugs. > | Lars> If everytime I want to work on a bug have to waddle thr

Re: Spirit for XML file parsing

2004-10-18 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Help get bugzilla into a better state and it will (at least for Lars> me) be a bit easier to work on bugs. Lars> If everytime I want to work on a bug have to waddle through a Lars> lot of unconfirmed and outdated bugs I soon lo

Re: Spirit for XML file parsing

2004-10-18 Thread José Abílio Oliveira Matos
On Mon, Oct 18, 2004 at 10:10:40AM +0200, Jean-Marc Lasgouttes wrote: > > Andre> Especially in times of freeze when every minute that's spend on > Andre> LyX goes into bugfixing. > > Sure. I have to say that I am a bit puzzled by all this excitation > about xml when I see in what state HEAD is.

Re: Spirit for XML file parsing

2004-10-18 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > | Andre> On Sat, Oct 16, 2004 at 03:20:40AM +0200, Lars Gullik Bjønnes | Andre> wrote: >>> | A small step to Lars a large leap to LyX? ;-) >>> >>> Parse Ok! vs. Parse Failed! >>> >>> do

Re: Spirit for XML file parsing

2004-10-18 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Sat, Oct 16, 2004 at 03:20:40AM +0200, Lars Gullik Bjønnes Andre> wrote: >> | A small step to Lars a large leap to LyX? ;-) >> >> Parse Ok! vs. Parse Failed! >> >> does not help us much. Andre> Especially in times of freeze wh

Re: Spirit for XML file parsing

2004-10-17 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sun, Oct 17, 2004 at 07:42:20PM +0200, Lars Gullik Bj?nnes wrote: > >> >> >> I disagree. LyX is not XSLT >> >> > >> >> | But this is a natural way to handle export filters. >> >> >> >> if you want a huge monolithic think, then yes. >> > >> | *Huh*? >> >

Re: Spirit for XML file parsing

2004-10-17 Thread John Levon
On Sun, Oct 17, 2004 at 07:42:20PM +0200, Lars Gullik Bj?nnes wrote: > >> >> I disagree. LyX is not XSLT > >> > > >> | But this is a natural way to handle export filters. > >> > >> if you want a huge monolithic think, then yes. > > > | *Huh*? > > > | http://xmlsoft.org/XSLT/tutorial/libxslttutori

Re: Spirit for XML file parsing

2004-10-17 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sun, Oct 17, 2004 at 07:18:37PM +0200, Lars Gullik Bj?nnes wrote: > >> >> I disagree. LyX is not XSLT >> > >> | But this is a natural way to handle export filters. >> >> if you want a huge monolithic think, then yes. > | *Huh*? > | http://xmlsoft.org/XS

Re: Spirit for XML file parsing

2004-10-17 Thread John Levon
On Sun, Oct 17, 2004 at 07:18:37PM +0200, Lars Gullik Bj?nnes wrote: > >> I disagree. LyX is not XSLT > > > | But this is a natural way to handle export filters. > > if you want a huge monolithic think, then yes. *Huh*? http://xmlsoft.org/XSLT/tutorial/libxslttutorial.html I'm sorry, but that

Re: Spirit for XML file parsing

2004-10-17 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Sun, Oct 17, 2004 at 03:55:47PM +0200, Lars Gullik Bj?nnes wrote: > >> | This is just a first impression and I certainly haven't used any of those. >> | The deciding think for libxml2 is the XSLT processor, it would be just cool >> | to have that in LyX.

Re: Spirit for XML file parsing

2004-10-17 Thread John Levon
On Sun, Oct 17, 2004 at 03:55:47PM +0200, Lars Gullik Bj?nnes wrote: > | This is just a first impression and I certainly haven't used any of those. > | The deciding think for libxml2 is the XSLT processor, it would be just cool > | to have that in LyX. > > I disagree. LyX is not XSLT But this is

Re: Spirit for XML file parsing

2004-10-17 Thread Lars Gullik Bjønnes
Andreas Vox <[EMAIL PROTECTED]> writes: | John Levon <[EMAIL PROTECTED]> writes: > | | | | On Sat, Oct 16, 2004 at 09:42:20AM +0100, Angus Leeming wrote: | | | | > Is the plan to feed the dtd to the parser, so that it parses only lyx docs | | > and not some other well formed but otherwise arbitr

Re: Spirit for XML file parsing

2004-10-17 Thread Andreas Vox
John Levon <[EMAIL PROTECTED]> writes: | | On Sat, Oct 16, 2004 at 09:42:20AM +0100, Angus Leeming wrote: | | > Is the plan to feed the dtd to the parser, so that it parses only lyx docs | > and not some other well formed but otherwise arbitrary file? | > | > I was thinking about the best way t

Re: Spirit for XML file parsing

2004-10-17 Thread Andre Poenitz
On Sat, Oct 16, 2004 at 03:20:40AM +0200, Lars Gullik Bjønnes wrote: > | A small step to Lars a large leap to LyX? ;-) > > Parse Ok! vs. Parse Failed! > > does not help us much. Especially in times of freeze when every minute that's spend on LyX goes into bugfixing. Andre'

Re: Spirit for XML file parsing

2004-10-17 Thread Andre Poenitz
On Sat, Oct 16, 2004 at 10:08:57AM +0100, Angus Leeming wrote: > Lars Gullik Bjønnes wrote: > > This is my test expath code so far. > > This gives me everything in the file... now I just need to make use of > > it. > > > > Signal driven. > > Looks good. Also looks like lots still to do. > > Seri

Re: Spirit for XML file parsing

2004-10-16 Thread John Levon
On Sat, Oct 16, 2004 at 09:42:20AM +0100, Angus Leeming wrote: > Is the plan to feed the dtd to the parser, so that it parses only lyx docs > and not some other well formed but otherwise arbitrary file? > > I was thinking about the best way to proceed on the way home last night. Do > we really ne

Re: Spirit for XML file parsing

2004-10-16 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> I have begun on a road that I am not sure that I should continue. >> It is nice in a way... but I have feeling that it is complicated... >> OTOH the handlers are quite easy to write, since you only follow the >> DTD when doi

Re: Spirit for XML file parsing

2004-10-16 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > I have begun on a road that I am not sure that I should continue. > It is nice in a way... but I have feeling that it is complicated... > OTOH the handlers are quite easy to write, since you only follow the > DTD when doing so. > > I am now so far that I can with littl

Re: Spirit for XML file parsing

2004-10-16 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Angus Leeming <[EMAIL PROTECTED]> writes: > | | Lars Gullik Bjønnes wrote: >>> This is my test expath code so far. >>> This gives me everything in the file... now I just need to make use of >>> it. >>> >>> Signal driven. >> | | Looks good. Also lo

Re: Spirit for XML file parsing

2004-10-16 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> This is my test expath code so far. >> This gives me everything in the file... now I just need to make use of >> it. >> >> Signal driven. > | Looks good. Also looks like lots still to do. > | Seriously, if you would like so

Re: Spirit for XML file parsing

2004-10-16 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > This is my test expath code so far. > This gives me everything in the file... now I just need to make use of > it. > > Signal driven. Looks good. Also looks like lots still to do. Seriously, if you would like some help with this, why not create a branch of the cvs tr

Re: Spirit for XML file parsing

2004-10-16 Thread Lars Gullik Bjønnes
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Sat, Oct 16, 2004 at 09:42:20AM +0100, Angus Leeming wrote: >> >> Given that expat already has the machinery we need, so that all you need do >> is register handler functions with the parser, I'd start off with that. >> Most of the strai

Re: Spirit for XML file parsing

2004-10-16 Thread José Abílio Oliveira Matos
On Sat, Oct 16, 2004 at 09:42:20AM +0100, Angus Leeming wrote: > > Given that expat already has the machinery we need, so that all you need do > is register handler functions with the parser, I'd start off with that. > Most of the strain will be in writing these handler functions anyway. > (Presum

Re: Spirit for XML file parsing

2004-10-16 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | I am sure it would be a lot easier for me to use expat instead... > > Ok I got xml.cpp to compile. > > I have not made it do anything yet... > (except parse UserGuide.lyx.xml successfully.) Is the plan to feed the dtd to the parser, so that it parses only lyx docs

Re: Spirit for XML file parsing

2004-10-15 Thread Lars Gullik Bjønnes
José Abílio Oliveira Matos <[EMAIL PROTECTED]> writes: | On Sat, Oct 16, 2004 at 01:23:07AM +0200, Lars Gullik Bjønnes wrote: >> >> Ok I got xml.cpp to compile. >> >> I have not made it do anything yet... >> (except parse UserGuide.lyx.xml successfully.) > | A small step to Lars a large leap t

Re: Spirit for XML file parsing

2004-10-15 Thread José Abílio Oliveira Matos
On Sat, Oct 16, 2004 at 01:23:07AM +0200, Lars Gullik Bjønnes wrote: > > Ok I got xml.cpp to compile. > > I have not made it do anything yet... > (except parse UserGuide.lyx.xml successfully.) A small step to Lars a large leap to LyX? ;-) > -- > Lgb -- José Abílio Matos LyX and doc

Re: Spirit for XML file parsing

2004-10-15 Thread Lars Gullik Bjønnes
[EMAIL PROTECTED] (Lars Gullik Bjønnes) writes: | Angus Leeming <[EMAIL PROTECTED]> writes: > | | Lars Gullik Bjønnes wrote: >>> | Sure. See attached. >>> >>> Ok... then add some attributes, mixed-contentent. >>> >>> >>> Hellothere. >>> >>> >>> Would be great seeing an example using the actua

Re: Spirit for XML file parsing

2004-10-15 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: >> | Sure. See attached. >> >> Ok... then add some attributes, mixed-contentent. >> >> >> Hellothere. >> >> >> Would be great seeing an example using the actual xml grammar from >> xml.zip? Or is generic parsing frowned up

Re: Spirit for XML file parsing

2004-10-15 Thread Georg Baum
Angus Leeming wrote: > Incidentally, I see that Dan Nuffer's stuff unzips to a directory xml that > contains Makefile.am. How do I generate a Makefile from that? Add Makefile.am to AC_CONFIG_FILES in configure.ac and then call automake from toplevel. Georg

Re: Spirit for XML file parsing

2004-10-15 Thread Angus Leeming
Lars Gullik Bjønnes wrote: >>> Any pointers? >> > | Sure. See attached. > > Ok... then add some attributes, mixed-contentent. Incidentally, I see that Dan Nuffer's stuff unzips to a directory xml that contains Makefile.am. How do I generate a Makefile from that? $ automake automake: `configure.a

Re: Spirit for XML file parsing

2004-10-15 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > | Sure. See attached. > > Ok... then add some attributes, mixed-contentent. > > > Hellothere. > > > Would be great seeing an example using the actual xml grammar from > xml.zip? Or is generic parsing frowned upon with spirit? I haven't looked at that stuff, just f

Re: Spirit for XML file parsing

2004-10-15 Thread Lars Gullik Bjønnes
Angus Leeming <[EMAIL PROTECTED]> writes: | Lars Gullik Bjønnes wrote: > >> Angus Leeming <[EMAIL PROTECTED]> writes: >> >> | Lars Gullik Bjønnes wrote: Either a lib or xml parser for spirit. >>> >> | There are examples of same in the repository at spirit.sf.net. If you >> | want any help, j

Re: Spirit for XML file parsing (was: Fun file)

2004-10-15 Thread Angus Leeming
Lars Gullik Bjønnes wrote: > Angus Leeming <[EMAIL PROTECTED]> writes: > > | Lars Gullik Bjønnes wrote: >>> Either a lib or xml parser for spirit. >> > | There are examples of same in the repository at spirit.sf.net. If you > | want any help, just holler. The spirit-users list is jolly helpful. >