REBOL3 - XML (xml related conversations [web-public])

Return to Index Page
Most recent messages (300 max) are listed first.

#UserMessageDate
498Maximthe change in RebXML was to forego of a few limitiations and to allow direct xpath like useage of the loaded xml... which can't be done with RebXML out of the box.5-Jun-07 20:31
497MaximI did not do it using parse for lack of knowledge ... and also the fact that schema and PARSE do not have the same traversal mechanisms... but its still very fast and error report is extremely precise (it gives you the full path of the error!)5-Jun-07 20:30
496Maximhehe... I have a validating schema parser which uses a modified RebXML engine... but I still have not had the balls to ask my client if we would be willing to make it open source.... I'm sure he would benefit from the extra time people might put on it.5-Jun-07 20:29
495MaartenHas anybody done work on translating XML schemas (perhaps automagically) to REBOL parse rules that can work on REbelXML/RebXML like native syntax?3-Jun-07 20:19
494AntonI do not know much about the greater issues of XML, however.18-Jun-06 18:35
493AntonWell, I just had a quick look. It seems to be clean code, well organised. Perhaps I can find some time to test it out myself in a few days.18-Jun-06 18:33
492ChristopheSeriously, I need this lib for my work. Is there anybody out there who has ANY comment about it ? Please ...18-Jun-06 15:31
491ChristopheWell, Ashley, this is very kind of you :-) But after checking the links, it seems Google isn't my friend anymore :-))18-Jun-06 15:29
490AshleyFolks seem to be using/talking about it ... just do a google search on "RebelXML". ;)18-Jun-06 1:50
489ChristopheWell, no reaction to RebelXML. Do I have to assume it has no bugs or nobody is using it ? :-))17-Jun-06 20:07
488Maxim(I hope my previous post was read as intended... ironically!) ;-) although schema is pretty well defined and actually not too badly designed, its just so huge.8-Jun-06 17:35
487PekrI wonder if REBOL can get standards fully compliant XML parser/emitter ....8-Jun-06 17:23
486Maximimplementing schema is sooo much fun!8-Jun-06 17:21
485ChristopheIs REBOL not pronounce REBEL ? It was just for the fun...4-Jun-06 6:50
484Grahamwhy rebel and not rebol?2-Jun-06 23:33
483ChristopheWe'll use it in production very soon. I took a SAX approach because we've to manipulate big XML files, and it was a mean to boost performences.2-Jun-06 17:10
482ChristopheI submitted RebelXML to rebol.org quite some time from now. I can see it as been examined by some people. Well, it should be great if I could get some feedback about it.2-Jun-06 17:08
481ChristopheWell, I'm back after a long time off the air... Now back online and talking from a brand new iMac, and I enjoy it :-)2-Jun-06 17:07
480AntonOh, I see, it has optimized the expression.30-Apr-06 18:25
479AntonThat's pretty cool. But, isn't the output of the rewrite above missing the multiply ?30-Apr-06 18:24
478Gabrieledo you have common examples that you consider problematic for parse? we can probably use rewrite on the parse rules themselves to extend them in a similar way that compile-rules does.30-Apr-06 8:54
477Gabriele(rewrite is currently 25 lines of code)30-Apr-06 8:53
476Gabriele>> rewrite [ [ plus [plus [mult [lit 3] [lit 1]] [lit 2]] [lit 0] [ ] [ [ ['lit set x number!] [push (x)] [ ['plus into ['lit 1 1 0] set x block!] [(x)] [ ['plus set x block! into ['lit 1 1 0]] [(x)] [ ['mult into ['lit 1 1 1] set x block!] [(x)] [ ['mult set x block! into ['lit 1 1 1]] [(x)] [ ['plus set x block! set y block!] [(x) (y) add] [ ['mult set x block! set y block!] [(x) (y) mul] [ ] == [push 3 push 2 add ]30-Apr-06 8:52
475Gabrielewe want to compile it to a forth-like processor30-Apr-06 8:52
474Gabrieleexample: assume the AST for 3*1+2+0 is [plus [plus [mult [lit 3] [lit 1]] [lit 2]] [lit 0]]30-Apr-06 8:52
473Gabrielemy rewrite function works quite well for search and replace. it still has the limitations of parse, though, but they don't seem a huge problem so far.30-Apr-06 8:47
472BrianHYup. I've posted on rambo about everything I've suggested and more. I hope they consider these suggestions for REBOL 3.29-Apr-06 22:35
471GrahamBrian, did you post a rambo on parse after a discussion we have a while ago ?29-Apr-06 22:22
470BrianHYou can do some structural pattern matching with parse rules, but with how parse is currently implemented it can be a little awkward. The lack of arguments to parse rules make recursion quite difficult, and the lack of local variables make the rules difficult to use concurrently. It is difficult to examine both the data type and the value of elements in block parsing, to switch to string parsing mode for string elements, to parse lists, hashes or parens, to direct the parse flow based on semantic criteria (which is needed to work around any of these other problems).

And don't even get me started on the difficulties of structure rebuilding. The thing that is the most difficult to do in parse is the easiest thing to do with regexes: Search and replace. Didn't we make a web site years ago collecting suggestions for improving parse? Wasn't a replace operation one of those suggestions? What happened with that?

Structural pattern matching and rebuilding currently has to be done with a mix of parse and REBOL code that is tricky to write and debug. If parse doesn't get improved, I'd rather use a nice declarative dialect, preferably with before and after structures, and have the dialect processor generate the parse and REBOL code for me. If that dialect is powerful enough to be written in itself then we'll really be cooking.

29-Apr-06 22:00
469Gabrielebrian: do you think that structural pattern matching could be done with parse rules too? or, do you think we need something like "longest match" (which can be implemented in parse but is tedious to do manually)29-Apr-06 8:30
468Gabriele(maybe there just isn't any general solution to the problem of selection.)29-Apr-06 8:28
467Gabrieleso maybe my question is: is graph navigation (or, if you think it is general enough, tree navigation) a general enough selection model, or do you think that it would be missing something?29-Apr-06 8:28
466Gabrielewhen i think about representing data conceptually, i tend to always come up with a graph or a tree (then i map the conceptual graph to a relational model, or maybe to a dialect). so for selecting data a "navigation" approach (which is basically what xpath does) seems rather natural for me; then you can map the navigation to SELECT statements etc if needed.29-Apr-06 8:26
465Gabrielei.e., if we think that dialects are better than trees for data.29-Apr-06 8:20
464Gabrieleselecting dialected data29-Apr-06 8:19
463Gregg"can we think of a generic way to select data represented with a dialect?"

Do you mean "selecting dialected data" or "a dialect to select data that's in format X"?

28-Apr-06 20:36
462BrianHI have often missed structural pattern matching in REBOL, something like the match statement in Nemerle (I'm sure it's in other functional languages but that's the first that came to mind). You could combine a structural pattern specification dialect (like XPath) with a structure building dialect (like XSLT), and then make the dialect compilable to REBOL code that can be used over and over again. It would be like a regex compiler for structures - I would use this every day.

All you would have to do to implement actual XPath syntax would be to specify a standard mapping of XML semantics in REBOL data structures (see my block model in this group from last October) and then have compile the XPath syntax (in a string) to the structure matching dialect. Then you could work from there.

(Gabriele, sorry if this seems redundant - I'm trying to explain tree rewriting in more REBOL-like terms).

28-Apr-06 19:34
461Gabrielecan we think of a generic way to select data represented with a dialect?28-Apr-06 18:16
460Gabrielebasically, what sql's select is for relational data, xpath is for xml data.28-Apr-06 18:16
459Gabrielenow, it remains to consider something like xpath for selection28-Apr-06 17:31
458Gabrieleon top of this, one could probably implement something similar to xslt, to translate a tree (parsed from xml) to another tree (maybe xhtml or another xml doc)28-Apr-06 17:26
457Gabrieleand, it's a few lines of code (half a page or so)28-Apr-06 17:25
456Gabrieleit turns out that i can do tree rewriting as a subset of dialect rewriting. it's a bit tricky but works well.28-Apr-06 17:24
455IngoI once used XML as a file format, just to play around with it. And later I found out, that I'd broken so many rules, that no other gram was able to read it anyways. ;-)28-Apr-06 16:43
454IngoI guess people have _very_ differing needs in this. Some _really_ need to handle XML with all strings attached to it, and others just want to interface to existing technoglogies and read / write xml. I'd put myself in the second category, if ever I have to work with XML again, that is. And I surely hope this won't happen ;-)28-Apr-06 16:42
453MichaelBJaime: that's what I meant too. But the discussion jumps around quite a bit and as some of these terms are unfamilar (besides the simple I know what you're talking about) - it's hard to know what to vote for :-).28-Apr-06 16:35
452Pekrthis group exists for a long time, and IIRC initially we were more or less discussing rebol - XML interoperability - SAX or DOM parser in rebol .... while from what is being discussed now, sounds like slightly bit different topic?28-Apr-06 16:34
451Pekrthat sounds good ... so far my only experience with XML in rebol is Gawain's work - better than nothing .... but what exactly do you mean by XML here?28-Apr-06 16:33
450JaimeVargasI think Gabriel proposal is to rewrite the XML into an RXML "A easy to manipulate representation of XML in rebol". Then you rewrite back to XML if you need to.28-Apr-06 16:27
449PekrI agree to MichaelB .... but maybe then I vote for 1, 2 and 3 as well, so that 3 can be translated to "standard"28-Apr-06 16:25
448MichaelBActually I don't care what directly is available (as a user), if just some things can be done: e.g. people need to process XML - thus people already knowing XSLT and XPATH would like to leverage their knowledge (I asume) - so if we get a dialect for this (2.) this is nice, but even nicer if there is some mechanism (a generalization) which allows to import an XSLT (ast?) or some XPATH query and return the (more rebolesque) according Rebol dialect 3. three has always this kind of attitude of being able to do everything better in Rebol itself - even if true (?), that's one of the problems with Rebol, that outsiders can't afford the time to do many things better (themself) or don't care, because they want use some standards nevertheless and Rebol drops out as an option

so I vote for 2. with the ability for 1. maybe by the possibilities tree rewriting (or dialect rewriting) offers (I have not much glue about this - so some of the experts should know)

28-Apr-06 16:16
447JaimeVargasBTW, Gabriele you have my vote on tree rewriting.28-Apr-06 15:43
446Pekrmaybe, but maybe not. We need to be able to interface XML (DOM) anyway .... (e.g. for plug-in )28-Apr-06 15:09
445yeksoonthe lack of vote for xpath and xslt..

maybe its because there is this thought of adding yet another layer just to manipulate the data etc (remember Carl's slide in DevCon 2004 ?... with REBOL on one side against a stack of others on the other side)

28-Apr-06 14:43
444Pekrmaybe noone votes for 3 because a) we have little understanding what xpath can do for us b) once we say "dialect" or rebol in general, we sometimess think it is cure for all proglems28-Apr-06 14:23
443AntonHmmm.....28-Apr-06 14:22
442JaimeVargasBut by avoiding the AST aren't you throwing the possibility for optimizations, a direct rewrite engine is more like a literal translator. The cool think of having an AST is all the tricks that you can play to produce more efficient code at the cost of pre-processing time.28-Apr-06 14:19
441Gabrielei don't know if this concept can be generalized easily. but it would be interesting to figure out.28-Apr-06 14:15
440Gabrieleso it can be considered a superset of tree rewriting (since you can think of a dialect to represent trees)28-Apr-06 14:14
439Gabrieledialect rewriting is basically what my rewriting engine for rebcode does; it's rewriting where instead of using a regexp you use a parse rule; and instead of compiling a tree to another tree you compile a dialect to another dialect.28-Apr-06 14:14
438Gabrielethere are only two votes so far, howeverr both voted for 3. maybe, we could introduce a new concept to CS, "dialect rewriting". :) it's the same as tree rewriting but without a tree. ;)28-Apr-06 14:11
437Gabrielexslt does something very similar; it matches a number of nodes (via xpath), then creates a new tree based on those nodes. rules are applied recursively so that you end up with a new tree starting from the initial tree.28-Apr-06 14:09
436Gabrieleno, you specify a pattern that can match a subtree, and replace that subtree with something else.28-Apr-06 14:08
435Maximok, so you pre-specify how path /aaa/bbb/ccc/ specifies data in another tree /xxx/yyy/zzz ?28-Apr-06 13:32
434Gabriele"Tree rewriting is a model of computation which is used in a variety of contexts within computer science, for example in semantic specification and compiler implementation"28-Apr-06 10:12
433Gabrielebasically, you have a tree, and you have a set of rules for rewriting; a rule is a pattern and a replacement for the matched node28-Apr-06 10:09
432Gabrielemax: tree rewriting is the technique that compilers use to get from the source AST to the final machine code; you can also imagine purely functional languages as special tree rewriting engines.28-Apr-06 10:07
431ScottTwell, if you can write a stylesheet that outputs a layout. Not at all impossible, <xsl:output method="text" />27-Apr-06 20:49
430yeksoondoes having XSLT also means we can map that into /View?27-Apr-06 19:08
429Maximcan you further define "tree rewriting"27-Apr-06 16:40
428Gabriele"we already have data as trees" - if you use that, then tree rewriting would be very useful for you, wouldn't it?27-Apr-06 16:18
427Maximso my vote 3)27-Apr-06 15:23
426Maximalthough getting XML:schema LOAD/SAVE , complete, native XML 1.0 LOAD/SAVE that would at least allow us to start using XML in the first place ;-)27-Apr-06 15:23
425Maximand we already have data as trees in rebol, nested blocks and objects... so I don't think its going to help much.27-Apr-06 15:20
424SunandaI'd lead towards 3. But that's because I heft XML into REBOL objects and fiddle with it from there. That gets away from the strict hierachy of XML, so I don't need to think about basically insane things like XSLT's axis processing27-Apr-06 8:14
423Gabrielei'm just trying to get some ideas. not a real poll. but maybe we can post this on reboltalk too.27-Apr-06 8:09
422yeksoonwhy not post this on REBOLTalk.com forum as a poll?

have AltMe, ML user participate in this poll

27-Apr-06 7:58
421Gabriele(pick your choice :)27-Apr-06 7:46
420Gabriele1) people want XSLT and XPath in rebol, because it's the standard and so on. 2) people want a dialect that offerst XSLT/XPath-like functionality to work on REBOL trees (as opposed to XML) 3) noone cares about representing data as trees in REBOL because dialects are much better anyway27-Apr-06 7:46
419Gabrielespeaking of XPath (Reichart's msg on Altme group), I wonder if there's need for it in the community?27-Apr-06 7:44
418Maximit seems powerfull, but I had a hard type getting it to work. I WAS pressed for time though.26-Apr-06 16:29
417JoeI used Gavin's code in the past and found very complete and useful, specially when using xml-object.r26-Apr-06 16:27
416Maximits easy to use? and will get your job done within minutes of trying. ;-)26-Apr-06 16:26
415JoeHow does rebxml compare to gavin withead xml-parser.r ?26-Apr-06 16:25
414GeomolGreat to see my work is being used! :-)26-Apr-06 11:08
413Maximalso, although I have not looked at rebelxml in this regard, rebxml handles many of the xml idiosyncracies in the XML specification like empty tags, CDATA blocks, and some level of character conversion to handle unicode and & escaped chars.25-Apr-06 21:06
412Maximrebxml can be found here, with docs :-)

http://home.tiscali.dk/john.niclasen/rebxml/

25-Apr-06 21:04
411GrahamWhere's your script ? :)25-Apr-06 21:03
410Maximthat's my 2 cents. and a 2 minute overlook of rebelxml.r25-Apr-06 21:03
409MaximI must admit that just by looking at the docs, I prefer Geomol's solution better, its more approachable.25-Apr-06 21:02
408MaximIts news to me, but in my useage, Its easier for me to have rebol loaded blocks, cause I can use path notation directly, in order to access the data, just as if they where objects.25-Apr-06 21:01
407Grahamwhat do think of this new script ?25-Apr-06 21:00
406MaximI'm using rebxml as the loader and then write a dialect over it to convert to my preffered (easier to use) block format.25-Apr-06 20:59
405Graham( I know nothing really of XML .. just know I have to parse some data, and rewrite out my data as xml )25-Apr-06 20:58
404Grahamwhich is best to use?25-Apr-06 20:57
403Grahamwhat's the difference between RebXML, and rebelxml and other implementations?25-Apr-06 20:57
402Grahamthere's a new script in the library %rebelxml.r ( not sure why it isn't rebolxml.r )25-Apr-06 20:56
401?We have done a little in Qtask. WE save the tasks as XML (and call it XLS so that Excel can load it). We will be writing an RSS reader soon.21-Apr-06 8:25
400Maximanyone know if any XML Schema integration has been done in REBOL?20-Apr-06 20:41
399MaximGeomol, you might just have made yourself a new user :-) I'll try to stress-test RebXML next week, gauging speed, features and stability.13-Apr-06 14:36
398GeomolMaxim yes, RebXML can handle namespace tags and unicode.13-Apr-06 11:08
397AllenI always thought the c in W3c meant committee not consortium. ;-)13-Apr-06 0:52
396?"my god reading the w3c spec for XML is insane." LOL12-Apr-06 22:20
395Rebolekpekr: no wonder there's still no fully compliant xml parser12-Apr-06 14:21
394Pekrno wonder what?12-Apr-06 14:10
393Maximreading the xml spec... its no wonder.12-Apr-06 14:07
392Maximyep.12-Apr-06 14:05
391Pekrhmm, I think that our problem is not lack of speed, but lack of fully compliant xml parser at first....12-Apr-06 14:05
390MaximI want to try out with rebcode one day. it would probably go about 10 times faster or more.12-Apr-06 14:04
389Maximit does all in one shot. I read through the string once and have a nifty recursion with tail handling.12-Apr-06 14:03
388Pekrdoes it work SAX way or DOM way? I mean - load first, then parse, or parse while reading way?12-Apr-06 14:02
387Maximyet builds a nested block of blocks much like RebXML.12-Apr-06 14:01
386Maximmy tool currenctly loads 1MB of xml tags in under a second. its almost as fast as load/markup.12-Apr-06 14:01
385Maximit had to do with http dowloading of the chunks...12-Apr-06 14:00
384Maximbut there where some errors in the datafile itself, in the begining.12-Apr-06 13:59
383Maximmy own when I started the project I did not have many days to "get on with it" and for various reasons all the tools I tried didn't properly load the specification I was trying to load.12-Apr-06 13:59
382Pekrmaxim - have you used Gawain's xml parser, or is it your own one?12-Apr-06 13:58
381MaximGeomol, just looked over rebxml... I've build a similar engine, even simpler actually. but it might become a little bit smarter in a few weeks... maybe supporting more of the XML 1.0 specs like &chars conversion and such.12-Apr-06 13:57
380Maximgeomol, does RebXML handle namespaces and unicode?12-Apr-06 13:53
379Maximsaved out a 15 cell spread sheet in microsoft xml yesterday... 58kb of data HAHAHHAHAHAHAHA12-Apr-06 13:52
378GeomolIf you choose to have your doc formats in something like the XML-based OpenDocument, where every tag is explained in an open specification, then it can be used. (Only problem then is XML itself with it's problems.)12-Apr-06 9:54
377GeomolI remember talk a few years ago, that MS would make their .doc format XML based. And people thought, that would mean, it would become an 'open' format, which could now be read and written by any wordprocessor. If you have somehing like: #{78797A7138373837} in binary, and choose to make it into XML: <xyzq>8787</xyzq> does that make you know, what it mean? No, of course not. Some MS employee later told in an interview, that MS of course would guard their IP - 'intellectual property'. I don't know, where the story ended, and I don't care much, as I keep away from MS formats.12-Apr-06 9:49
376PekrI think that current situation of XML world shows, that it is rather absurd situation .... the idea of automatic exchange of docs, their specs, without involvement of ppl, is naive ....12-Apr-06 9:39
375GeomolIf you need a simple XML spec, don't forget my RebXML: http://home.tiscali.dk/john.niclasen/rebxml/ (Only a couple of pages.) It's an easy way to work with XML inside REBOL, and on the same page you'll find scripts for converting between XML and RebXML.12-Apr-06 9:35
374Pekrnot to mention browser incompatibilities, because in the case of XML, browser is your "preview" interface ...12-Apr-06 9:06
373PekrI think not, Graham .... we have such a problem ... big corporation, we try to define xml formats. The trouble is, big products do wrap it for you, but what about smaller companies?12-Apr-06 9:06
372GrahamPossibly an exaggeration on their part.12-Apr-06 8:45
371GrahamI'm on a list discussing, inter alia, CCR .. which stands for continuity of care record. It's XML, and so guys are saying it's taken them 50,000 lines to write the parsing code etc.12-Apr-06 8:45
370AllenI think that might be why the microformats are taking off. They use XML in its simplest, intended form.12-Apr-06 8:17
369AllenXML was a simple 2 page spec originally.12-Apr-06 8:16
368SunandaXML was intended to be a simplification of SGML. But they forgot to ask first "why is SGML apparently some complicated?" So they ended up adding back in most of the complications in an ad hoc way.12-Apr-06 7:42
367MaximXML overcomplicates soooo many things. its like the standard, for people who can't make up their minds:

You can do this, or that or this too, but only when this and that or this occur outside and inside that other thing.

12-Apr-06 6:02
366Maximmy god reading the w3c spec for XML is insane.12-Apr-06 5:59
365Thørmanual resync...4-Apr-06 18:19
364?Agreed. So, write a Rebol block ML that does everything as well as XML, and we will support it.23-Mar-06 19:25
363Antonno need to convince us :-)23-Mar-06 15:46
362MaximI left the tabs at 2 spaces in the rebol output, so that the comparison is fair.22-Mar-06 17:46
361Maxim693 kb in xml form ==> 90 kb in nested rebol blocks22-Mar-06 17:43
360Maximan empiric test (subjective to the xml structure and tag names obviously, but this IS a real world xml file)22-Mar-06 17:41
359Maximxml is such bloat.. I am parsing xml these days and for two characters of data, I often have a 100+ characters of nested stupidity.22-Mar-06 16:47
358Willhttp://tech.motion-twin.com/xmllight.html8-Jan-06 23:58
357ChristopheHas somebody already give a try to a SAX implementation ?27-Nov-05 13:15
356Maximwill be reading top to bottom ... not that this is any fun... ;-)15-Nov-05 3:49
355Maximthanks Chris !15-Nov-05 2:45
354Chrishttp://www.w3.org/TR/REC-xml/14-Nov-05 5:27
353Maximout of the blue, can anyone point me to the (or one) official XML spec ? (if there are many, it should be the one most used on windows and in things like PHP)

thanks!

14-Nov-05 1:30
352VolkerI guess in rebol we have fewer problems than java, as rebol is dynamic and java has to emulate that? So it cant map its own classes because the format is not known at compile-time? While we can. And then xml in memory should be in the order of rebol-blocks?12-Nov-05 11:15
351CarstenKDOM: in java APIs there were allways problems with dom - big amount of memory, not optimized for a language, so there was a need for optimized tools like JDOM, XOM or DOM4J, they all prefer SAX for parsing and have their own internal model - of course the API is special for all these tools and no standard like DOM12-Nov-05 11:11
350CarstenKin the moment i play a little bit with xml-parse.r, it has a lot of things done, some are still open (like <!ENTITY ...> parsing) and it is like SAX - I try to implement some handlers to learn REBOL, but it's still in progess. A benefit of xml-parse is, that there would be only one parser and some kind of standard API and the handler could then generate rebxml or some other desired format12-Nov-05 11:08
349Volkerxml is used to store word-files, rebol not? :)11-Nov-05 19:42
348ChrisAny less than you'd want a 10mb Rebol interchange file? What % of cases would this be an issue?11-Nov-05 19:36
347Pekrhmm, couldn't we just somehow mix the aproach, so to have some streamed dom? :-) I don't like the idea of having 10MB XML interchange file to load into memory ....11-Nov-05 18:40
346ChrisUsing DOM methods, you can do this albeit clumsily, but completely. All through a set of standard functions, with no need to manipulate the structure directly.11-Nov-05 16:46
345ChrisBut this is the issue here with Rebol and XML, there are solutions that suit one XML operation or another. Aiming for loosely implementing DOM gives us loading, extraction, modification, and saving without affecting the integrity of the data structure. Examples: changing the title of an HTML page, adding an entry to an RSS file, etc.11-Nov-05 16:44
344GeomolRebXML is meant for conversion to/from the RebXML format and other formats (incl. XML). I use the RebXML format with NicomDoc, which makes it a lot easier to handle document formats. Let's say, you've got an XML file, and want to convert it to a format easily read by some application, then you first use xml2rebxml to get the XML file to RebXML format. Then make a converter from RebXML to the final format by renaming the rebxml2xml script and change it to do the output, that is wanted. rebxml2xml holds the structure of the RebXML format, so it's easier to start with that script. Search for "output" in rebxml2xml. Maybe I should make a converter from RebXML to some format very easily manipulated directly within REBOL, like the python tool, Carsten found.11-Nov-05 8:50
343ChrisI've also noticed a tendency to kick the DOM (no doubt for good reason) -- though worth noting that it is a complete api to xml and it is a standard api, I wouldn't underestimate the value of the latter, particularly when it comes to Rebol advocacy...11-Nov-05 4:50
342Chrisnote: this group isn't showing on the web site, is this due to [web public] instead of [web-public] ?11-Nov-05 4:46
341ChrisCatching up a little. Be interesting to summarise this thread as there are many different ideas expressed. rebxml looks interesting for loading, saving and likely extracting xml, but still perhaps difficult to manipulate.11-Nov-05 4:43
340CarstenKJohn: Thank you, I'll play with it.

I found this python tool - maybe some interessting ideas there: http://uche.ogbuji.net/uche.ogbuji.net/tech/4suite/amara/quickref He uses objects but I like the idea for accessing xml - replacing the dots with slashes it looks for me like REBOL: doc/a/nodeName doc/a/b/1 ... doc/xml

9-Nov-05 13:53
339Geomoltotal-length? will count elements, and another block is also an element.9-Nov-05 13:49
338GeomolCarsten, a recursive function to count length of blocks with nested blocks:

total-length?: func [b [block!] /local n] [ n: 0 foreach e b [if block? e [n: n + total-length? e] n: n + 1] ]

9-Nov-05 13:47
337CarstenKWith length? i need some recursion, otherwise I get only the first level of the block if it is nested? How to serialize an object tree in REBOL - is there some function available?9-Nov-05 13:41
336GeomolAbout encoding in RebXML, rebxml2xml let you produce utf-8 by specifying the /utf-8 refinement: rebxml2xml/utf-8 <some rebxml data>9-Nov-05 13:41
335GeomolAbout memory for block or object, If you mean in bytes internally in REBOL, I don't know. But you could save the block or object to a file and see a size that way. You can of course see the length of a serie with: length?9-Nov-05 13:38
334CarstenKI have no idea about comparision of XML documents (input and output of rebxml for instance ) to ensure correctness, but it seems to be difficult.9-Nov-05 13:37
333CarstenKRebXML: I did some testing with rebxml, the documents I used can be found here: http://www.simplix.de/rebol/resources/xml/xmltests.zip There is also a simple script that reads the XML docs in and writes them back.

Some problems I found: - empty attributes, I have fixed this in the zip - entities in content: all should be escaped, because they can be found there, otherwise a &quot; gets &amp;quot; - comments after last element missed - comments before first element - missing line feed - missing PIs in output

Another question: encoding - it seems that all output files will be written in iso-8859-1 ?

9-Nov-05 13:36
332CarstenKI've also had a look inside xml-parse, it seems to be really like SAX - ready to use. But nobody is maintaining it, I think. As far as I understand, somebody could create a Handler to get the desired block structure (for instance a Handler for RebXML or any other model). I have to learn about this in REBOL.

A question: how can I measure memory for a block or an object tree in REBOL?

9-Nov-05 13:30
331Christophehum... i will digg a little more into the the theory i think. I had learnad another approach to that. Thanks anyway for showing the way !8-Nov-05 21:49
330BrianHNo, parse-xml generates a (broken, incomplete) DOM tree. Gavin McKenzie's xml-parse is more like a SAX parser.8-Nov-05 21:47
329ChristopheDid you have a look at the source of 'parse-xml ? Is this what is meant to be event-driven ?8-Nov-05 21:41
328CarstenKJohn: I''ve downloaded the scripts and will check them.8-Nov-05 20:00
327BrianH(abut = about)8-Nov-05 19:28
326BrianHThe important thing is to make sure that the events or data structures are a good map of the semantic model of XML. They have standards abut that too.8-Nov-05 19:28
325BrianHThose tag "/bbb" end tag events might be better named closetag "bbb" since close tags aren't supposed to have attributes anyway.8-Nov-05 19:25
324BrianHBalancing the detail of the events against the function-call overhead of the language may be appropriate. One advantage to SAX-like apis is that you can register handlers for certain events and ignore others you aren't interested in, making your code even more efficient.8-Nov-05 19:22
323BrianHAs for that data, let's assume a normal, fine-grained model. I'll just list the events:

tag "aaa" attribute "attaaa" "aaa1" end tag tag "bbb" end tag "contentbbb" tag "/bbb" end tag tag "/aaa" end tag

If you use a more coarse-grained model, you could have an event for a whole tag, its attributes, namespaces and such, rather than seperate events for each. This might be more appropriate for a more powerful language like REBOL. Fine-grained events are really more appropriate for languages with poor data structure support, like C or rebcode.

8-Nov-05 19:19
322ChristopheSo we can call it RebSAX approach :-)) ?8-Nov-05 19:13
321BrianHIf you say "I want to do a SAX-style XML parser", you mean event handling. Other data models have their own apis to copy, or don't so you have to come up with something new :)8-Nov-05 19:09
320ChristopheOk, I'm not a SAX specialist :-/ for my understanding, could you give an example of how <aaa attaaa="aaa1"><bbb>contentbbb</bbb></aaa> should be SAX-handled ?8-Nov-05 19:09
319BrianHThe only difference is whether it is push (callbacks) or pull (state machine, I think).8-Nov-05 19:08
318BrianHFor SAX, the event handling is the data model, the whole thing that makes it efficient.8-Nov-05 19:06
317ChristopheI thought SAx was about finding the most suitable data structure - not a tree representation, which is DOM. I don't know if the event handling part is mandatory (BTW, to whom ?). isn't all about accessing XML data the best way a PL can ?8-Nov-05 19:04
316BrianHSAX apis don't work like that. They generate a series of events, not a series of data.8-Nov-05 18:51
315ChristopheHas anybody think about a rigth data structure to use with a SAX-implementation ? I was thinking of the hash! and its performence for level 1 data retrieval. Perhaps an appropriate data structure could be a binary array labeling each element with a concatenation of the access path. Like this: <aaa attaaa="aaa1"><bbb>contentbbb</bbb></aaa>

becomes

make hash! [aaa id2 aaa-attaaa "aaa1" aaa-bbb "contentbbb"]

based on a mapping table

make hash! [id1 aaa id2 bbb]

or something similar...

just a rough though !

8-Nov-05 18:49
314ChristopheCarsten: "how different is EasyXML from rebXML?" I don't know :-) The most of our REBOL development is conditioned by the need of my job. Now I need an easy way to access to the parsed data. Xpath is an easy way. So we are creating a structure which facilitate the access to nested data. And it's fun :-) Now it could be john create something similar, and that we like it and adopt it. Who knows ?8-Nov-05 18:41
313GeomolCarsten, I've uploaded new versions of the RebXML scripts to: http://home.tiscali.dk/john.niclasen/rebxml/ Comments are now handled as strings, they are simple preserved without modifications, and in rebxml2xml I then check for "<!--" in the start of the string to distinguish them from other string data. Sending xml-data through first xml2rebxml and then rebxml2xml should only change white-space within tags. Try the new versions and let me know, if it works.8-Nov-05 14:12
312CarstenKChristophe: Thanks for the rebol-unit link, how different is EasyXML from rebXML?

Another question: how near to XML 1.0 should the REBOL implementation be? If yes, so the block format needs a document block with doctype information and children (elements, text, comments, processing instructions and attributes) and of course namespaces. How about DTD support and external entities like this: <?xml version="1.0"?> <!DOCTYPE root [ <!ENTITY test SYSTEM "external.xml"> ]> <root> &test; </root> They don't need to be preserved but should be resolved.

Geomol: I fully agree with you, to have a small format, but I think it would be nice if it supports the basic XML nodes. These are only my wishes of course ..., maybe we don't need extra words for elems and attributes, only for comments or PIs as special types of element children?

8-Nov-05 12:06
311GeomolI need to sleep on it. :-)7-Nov-05 22:08
310ChristopheIn this case, perhaps you could consider the comments as a special case of an empty tag, marking it with an heading "--" for example. It would not create a lot of overhead i think7-Nov-05 21:59
309Volkerhow about using some extra char? elem! attrib? aaa!/bbb!/ccc?/name ?7-Nov-05 21:57
308ChristopheOk, Geomol, I missed the point7-Nov-05 21:56
307ChristopheBTW, we called our project (not having find a better name): EasyXML. Just for the record :-)7-Nov-05 21:56
306GeomolRight, but Carsten asked for comments, so: output: rebxml2xml xml2rebxml <XML file> will make output the same as the original XML input.7-Nov-05 21:55
305ChristopheGeomol: why do you need to handle comments ? Aren't they there to facilitate the _reading_ of the XML code ? You'd not need them if you want to manipulate the data, right?7-Nov-05 21:54
304GeomolIt would be triviel to parse a RebXML block and add the node names (elem, attribs and comment), if that format is desired, but RebXML itself should be with as little overhead as possible.7-Nov-05 21:53
303GeomolI agree. I think, if comments are to be handled in RebXML, they should be represented as strings. Then the hurdle to distinguish them from data strings has to be solved.7-Nov-05 21:50
302Christophe> Some more ideas: I think the idea behind rebxml is great - build some common format representing xml in REBOL blocks. Some more ideas/wishes: > nodes like [elem "chapter" attribs [name "value" id "0815"] [ elem "sect" attribs [ id "5x12"] [ ....]] Our first solution (actually the one we're now using in production) was similar to that. But it brings a lot of ovehead to the data and the data adressing is far to be intuitive : aaa/elem/bbb/elem/ccc/attribs/name instead of aaa/bbb/ccc/name for instance. Not the most suitable solution as we experimented.7-Nov-05 21:47
301GeomolBut that'll add to the size. I like RebXML to take up minimal space.7-Nov-05 21:43
300ChristopheMore recent and up-to-date (and used by the french community) is RUn : http://rebol-unit.sourceforge.net/7-Nov-05 21:43
299GeomolA solution could be to do, as you suggested with node words (elem, attribs), which could be extended with the word: comment7-Nov-05 21:42
298Volkerfiles and such can be abused as strings too.7-Nov-05 21:42
297GeomolCarsten, I tried to handle comments internal in RebXML as the tag! datatype, but there seem to be a problem with tags containing newlines, other tags, etc. as a comment in XML can. So my solution doesn't work. Now I consider, if comments should be stored as strings in RebXML, but then there's the problem to distinguish them from data strings.7-Nov-05 21:39
296Volkertogether with a bit unix for copy/deep test-directories and a diff later.7-Nov-05 21:20
295Volkerforeach file scripts[ call/wait file ] and in each script: echo on print "Test1" .. -> report7-Nov-05 21:18
294CarstenKBut if you have 10 or more you can collect them, maybe they print some report (time, errors etc.) and you avoid things like this: carstens removes a "load", it works for him, but breaks another piece of code. And often nobody writes test scripts/code. And the test scripts, if available, are always a good code base to learn how the real script should be used. I'll look into rebol-unit (but only tomorrow)...7-Nov-05 21:16
293yeksoonthink there is one.. rebol-unit.. http://vydra.net/rebol-unit/rebol-unit.html

never use it though

7-Nov-05 21:09
292Volkersomething called runit exists AFAIK. But i never understood what the advantage in regard to rebol is. i can just write a testscript and call it?7-Nov-05 21:08
291CarstenKIs there some test script in rebol like Junit for java, so we could assemble some automated tests with different xml files?7-Nov-05 21:06
290GeomolCarsten, I think, your removal of LOAD in the error solution, you posted, does lead to some problems. But there also is a problem with the script, as it is now. I'm doing some investigation.7-Nov-05 20:53
289GeomolYes, it makes sense. I'll think about it, before I answer.7-Nov-05 20:51
288CarstenKSome more ideas: I think the idea behind rebxml is great - build some common format representing xml in REBOL blocks. Some more ideas/wishes: - maybe rebxml could be changed to ignore ignorable whitespaces, thats all whitespace between elements like line feeds, indention (beside elements with xml:space="preserve"), the block would be much smaller, but so the rebxml2xml script requires maybe a refinement /prettyprint with automatic indention - I think rebxml is a great idea, but for easier parsing maybe some words would help that indicate the beginning of special nodes like [elem "chapter" attribs [name "value" id "0815"] [ elem "sect" attribs [ id "5x12"] [ ....]] does it make sense?7-Nov-05 20:43
287MichaelBcarsten: I have to think about it ... quite some time I even used a java xml library7-Nov-05 20:34
286CarstenKto John (or geomol),

first I've got the following error: >> my-cdoc: xml2rebxml/preserve read %short.xml ** Syntax Error: Invalid word -- --> ** Near: (line 9) -->

So I replaced insert tail output load join "<!--" data with insert tail output join "<!--" data and it works fine with my files!

You were right, the replacements in text nodes are only &amp; &gt; &lt;. In attributes we need to escape the other 2 entities as allready done by you.

7-Nov-05 20:31
285CarstenK... using a XML port7-Nov-05 20:30
284CarstenKto michael: maybe you can show some rebol pseude code, how to read all chapters from a book.xml file, so we had some nice use case to think about7-Nov-05 20:30
283MichaelBcarsten: I should have kept my mouth shut about XOM and asked you before :-) the port-idea was just that a thought - in any case if one wants to use a dialect there has to be an entity to interpret the dialect, whether that's an function or something else doesn't matter, but a port seams to be a common rebol entity to encapsulate things - that's why I thought it would maybe even make sense to use a port as abstraction .... opening a port to an xml file and the port will parse it in whatever way - by sending (inserting) a dialected block into the port the xml document could be worked on - at least from the users point of view one wouldn't have to handle the xml-code-block/rebol code block separetely - even though it might be nice to access it directly .... well maybe I have too little glue about ports so the idea might not make too much sense when I forgot about some important drawbacks and the like7-Nov-05 20:17
282Grahamlol7-Nov-05 19:53
281VolkerHat-man? :)7-Nov-05 19:52
280GeomolHe's like a Marvel Super Hero! :-)7-Nov-05 19:49
279ChristopheGregg: as fast as lightning :-)7-Nov-05 19:14
278GreggDone.7-Nov-05 19:02
277PekrGregg - I think no problem here to make it web-public ...7-Nov-05 19:01
276GreggShould this group be web public?7-Nov-05 18:57
275Christopherebcode could be an issue. But still under development ..7-Nov-05 18:20
274ChristopheVolker: i got your point. I don't know yet. I will study it tomorrow.7-Nov-05 18:20
273BrianHOr for that matter, block parsing.7-Nov-05 18:13
272VolkerAnd with blocks there is a better chance to use rebcode?7-Nov-05 18:02
271Volkerbut 10-20% is not much anyway.7-Nov-05 18:01
270Volkerbecause you can use an object as long as there is only one value. But not sure if that helps.7-Nov-05 18:01
269ChristopheI do not get where you gain in performance? Or do i get it wrong ?7-Nov-05 17:56
268VolkerA rough idea: Maybe like vid does it? /color /colors ? it puts the first color in color if there is only one. if there are more, they are put in /colors-block .7-Nov-05 17:54
267ChristopheI was fighting today to find the best internal data format. Out of the tests seems object! the most performant when using nested data structure. hash! when not nested. but the problem with object! is that we cannot have a recurrent element in the structure, like: <aaa> <bbb>content</bbb> <bbb bbb_attrib="attrib1"></bbb> </aaa> because, of course, when evaluated the last definition of bbb overrides the others. So, we are trying to work with hash! We got a little diminution of the overhead comparing to XML, but the processing time compare to block! seems from 10 to 20% more. I need some more tests about data retrieving in the structure to find the right combination; Any suggestion is welcome !7-Nov-05 17:50
266ChristopheGeomol: you've done a great job with your rebxml. But we really need some kind a dialect to easilly acces nested data. Like Xpath... I need to be able to say get-data [//*/bbb/ccc[@id='geek']] and get the info. I think xpath have a great notation for that (and a standard). So e have to find the format wich best fit this dialect...7-Nov-05 17:18
265ChristopheMichaelB: about unicode handling. That's a point we didn't think about, because we're working in iso-8859-1 (western european) and not utf-8 or-16. So we've to see what would the cost be of it. If here is any suggestion about how to handle this, those are mostly welcome ! (I handled a similar problem with a simple replace/all, but i don't know if it's the best approach) About a port-approach... What should be the advantages ?7-Nov-05 17:13
264ChristophePekr: I do not know XOM, i will study it. Maybe it fits beter than our idea of DOM.7-Nov-05 17:12
263ChristopheWell this is a great place to learn !7-Nov-05 17:12
262PekrThanks Carsten, that clarifies things clearly to me .... I like Sax aproach more too .... IIRC Gavain's stuff was Sax like too ... it just could not write back to XML ...7-Nov-05 12:26
261GeomolCarsten, to insert second sect1, do something like: append last my-doc [sect1 id "sct_about" name "Another about" [title "etc....."]]7-Nov-05 12:23
260CarstenKTo Michael: I'm not sure if need DOM and SAX, there problem is, that the commitee tried to develop language independant interfaces - so both APIs have problems in the targeted programming language. DOM is inefficient, and you should avoid it. The best way seems to be: 1. have a parser like SAX with events 2. build the model in the best way for your language 3. provide a API for your language Basically XOM does it for JAVA very well, E.R.H. uses a SAX parser and converts to its own object model that is optimized for java. For REBOL this should be something like a block, I think. (Blocks are best way to store things in REBOL ?). But thats internal side of the the tool and could be the rebxml block structure. As api there should be a dialect, maybe one that uses a port (there I have less knowledge - have to learn about this).7-Nov-05 12:13
259CarstenKJohn, I've downloaded it from your website - thank you!

One more question from an unexperienced REBOL-user: What is the most commen way to enhance a block I've got with xml2rebxml, source is <?xml version="1.0" encoding="iso-8859-1"?> <chapter id="ch_testxml" name="Test XML"> <title>A chapter with some xml tests</title> <sect1 id="sct_about" name="About my Tests"> <title>What kind of tests I will do</title> <body> <para>Some simple paragraph.</para> </body> </sect1> </chapter>

After read in the file with my-doc: xml2rebxml read %test.xml I'd like to insert a second sect1-element in the block my-doc, whats the best way - just to avoid some stupid mistakes.

7-Nov-05 12:05
258GeomolCarsten, I've added suport for &quot; and &apos; in xml2rebxml. I've also added preservation of comments, if xml2rebxml is called with /preserve refinement (just call it like: xml2rebxml/preserve <xml code>). I've uploaded the scripts to my page: http://home.tiscali.dk/john.niclasen/rebxml/ I think, they need some testing, before they go to the library at www.rebol.org.7-Nov-05 11:41
257MichaelBWould it make sense to have XML files be represented as a port like xml:// . This could make sense for DOM and for SAX. But please correct me if that's stupid. For SAX this would enable one to copy from the port and get events by copying, for some one could navigate with some dialect and position the cursor in the document. A copy would read the data at the current positon - but then a block or something which represents an element could be returned. But I guess that's not well thought out. :-)7-Nov-05 11:36
256MichaelBAs Christophe told on the mailinglist - we actually need both SAX and DOM, because if you have a large document and are only interested in a sequence of appearings of elements one at a time, you don't need DOM, but if you need information about the overall structure of a document you have to read in the whole document and that's DOM. But if Christophe is doing DOM already - don't know to what extend - this would be very nice and might be ok for now.7-Nov-05 11:32
255PekrI liked the discussion Chris and Brian hold here week or so ago ... simply let's find a way of how to work with XML in rebol - once we know what do we want, we can start coding ...7-Nov-05 11:23
254MichaelBFor sure we shouldn't try to simply port something. But maybe it's anyway better to see what Christophe (Coussement) is doing (or his team). But XOM as a base for ideas might not be bad, as it's well designed based on some simple principles which I would sign at least. But it's completely object oriented, so there might be a more Rebol like way to go - don't know. What I would be interested to know is how Christophe is going to handle Unicode files? There are some scripts to help converting utf8 and the like, but I can'f oversee right now how well this will work.7-Nov-05 11:19
253Pekrhmm, not so easy and small anyway ... probably the best aproch will be to decide what direction we go and then starting to build rebol-oriented solution, not trying to port something. Looking at some stuff it seems to me sometimes it is designed to fit target language, e.g. java ....7-Nov-05 11:13
252PekrI seem to like XOM, at least upon what author says about it - of course, he eventually might be biased towards his own work - http://www.artima.com/intv/xomdesign.html - if it is true that simplicity was his motivation, then we could look into XOM as possible way to go ...7-Nov-05 10:40
251Pekrhttp://www.artima.com/intv/dom.html - The Good, the bad and the DOM - "a camel is a horse designed by committee" :-)7-Nov-05 10:30
250GeomolCarsten, you're right about the &quot; and &apos;. As I read the DTD (http://www.w3.org/TR/2004/REC-xml-20040204/), those can only be found in attribute values (see [10] AttValue), not in character data (see [14] CharData). Is that correct?7-Nov-05 10:30
249PekrWhat is wrong with XML apis - http://www.artima.com/intv/xmlapis.html7-Nov-05 10:10
248Pekrat xom.nu, you can find various articles too ...7-Nov-05 10:09
247CarstenKI will try the new xml2rebxml.r, I think it would be nice to preserve the comments. If somebody writes xml in a text editor and makes some annotations, so it its nice, if he gets these comments back after processing the files with some other (REBOL) tool. But this feature has some lower priority. I found some more thing in xml2rebxml.r, only the entities replace/all att-data "&gt;" #">" replace/all att-data "&lt;" #"<" replace/all att-data "&amp;" #"&" will be replaced, the other two are missed, I think: replace/all att-data "&quot;" #"^"" replace/all att-data "&apos;" #"'"7-Nov-05 9:55
246Pekrtaken from ML - http://www.xom.nu7-Nov-05 9:02
245GeomolI've uploaded the script to the library.6-Nov-05 18:35
244GeomolCarsten, the script still strip comments. Do you need the comments to be lead through to the output? (I'm a bit in two minds about, how it should work.)6-Nov-05 18:24
243GeomolCarsten, ok I found a bug related to multiple comments after each other. Get fixed script here: http://home.tiscali.dk/john.niclasen/rebxml/xml2rebxml.r6-Nov-05 18:22
242CarstenKcool, thank you for your time!6-Nov-05 18:06
241GeomolCarsten, yes, I get the same problem here. I'll look into it.6-Nov-05 18:03
240CarstenKI played around with some shorter XML document, to figure out, how it works - my REBOL experiences are from last week, so maybe I'm doing something wrong. The comments will be parsed and the block looks also complete but during writing it stops after an element that is followed by some comments. So far as I have seen these comments are left out in the block but there are a lot of whitespaces between the last printed element and the next missing element.6-Nov-05 17:47
239GeomolBy "handle", I mean parse them, but comments ain't in the output. The script shouldn't stop for valid XML input.6-Nov-05 17:40
238GeomolCarsten, xml2rebxml should be able to handle comments. Are you sure, your simple.xml is valid xml?6-Nov-05 17:34
237CarstenKOne more thing about XOM: E.R Harold has collected a lot of test XML files with many sophisticated XML things that can happen regarding to the XML 1.0 specs.6-Nov-05 17:33
236CarstenKDoing my first steps with REBOL I tried to do something with XML (reading/eventually modifing/writing). I looked for some scripts helping me to do this and found:

1. xml2rebxml/rebxml2xml: I got the following problems: - missing/loosing comments - missing/loosing elements - that's realy serious my steps were: my-doc: xml2rebxml read %simple.xml write %simple2.xml rebxml2xml my-doc

The second documents finishes outputting elements after some comment block in the source xml doc.

2. xml-parse/xml-object: The versions I found on the reb library didn't work, I used some older versions from rebXR-1.3.0, I've got my objects, but it would be nice to have a third module like xml-write to get the object tree back to xml. Is somebody developing something like this?

3. mt.r: I tried to figure out how it works. Basically I can write some XML based on a REBOL block but I couldn't figure out how to define the rules about elements and attributes. Where can I find an example about writing for instance svg with mt.r, how looks the coresponding REBOL block and the rules for svg?

Where can I find more about xml and REBOL, I think it would be very nice to have some REBOL scripts, doing things like some-elem: xml-create [ elem "foo" namespace "myns" attribs [ bar "something" xyz "123"] ] xml-modify [ elem another-elem append some-elem ] and finally xml-write %mynewxml.xml my-doc

Is somebody developing something like this with REBOL? Some scripts giving me the same comfort in REBOL like maybe XOM (http://www.xom.nu) is giving for XML in Java. Of course done with some nice REBOL dialects? What is the above mentioned "EasyXML" - is it available for use/testing?

Thank you for any tips, carsten

6-Nov-05 17:19
235PekrWe should choose the way of how we integrate it into rebol - SAX, DOM, other ...5-Nov-05 17:25
234Pekrlook at Technews - E4X for Javascript - I like the simplicity they integrated it into the language ....5-Nov-05 17:24
233JaimeVargas(Continued in the !Beer group...)2-Nov-05 18:20
232GrahamWell, I would like to know as otherwise it's very insecure at present :(2-Nov-05 18:15
231JaimeVargasComplete LNS when we have the final spec.2-Nov-05 18:15
230JaimeVargasNope. There is a way around this. Without your fudge.2-Nov-05 18:15
229GrahamSo, when are you guys going to complete LNS ??2-Nov-05 18:14
228GrahamBut if someone had the source, they can pretend to be an administrator, and start to damage my data :(2-Nov-05 18:14
227GrahamAt present I fudge it by asking initiators to send a userid with each request so I can determine their rights.2-Nov-05 18:13
226Grahamoh... well, I may have to backtrack on that .. it could be dangerous to release the source code while LNS doesn't have a way to restrict access to functions.2-Nov-05 18:12
225JaimeVargasI mean the src code?2-Nov-05 18:11
224Grahamup to 0.0.70 now.2-Nov-05 18:11
223GrahamIt's being continually released all the time.2-Nov-05 18:11
222JaimeVargasBTW. When are you releasing your medical application? I guess is going to be open-source due to GPL licensing issues ;-)2-Nov-05 18:08
221GrahamNo... just thinking about an upcoming code review :)2-Nov-05 18:05
220JaimeVargasDo you want Rebol to run C code?2-Nov-05 18:03
219GrahamHow hard would it be to write a C to Rebol translator ?2-Nov-05 18:01
218JaimeVargasWith a support contract.2-Nov-05 17:59
217JaimeVargasBetter let the customer know what he is getting up front. Even if it is hards or sell the solution as closed-source.2-Nov-05 17:59
216JaimeVargasPekr. I agree. But believe in the politics of truth instead of deception.2-Nov-05 17:58
215Pekrcustomers usually don't want to see a code ;-) And it is same like we coded with CA-VO ... we bought a library and did not care for its internals, if things worked ....:-)2-Nov-05 17:57
214GrahamI guess you could then drag out dockimbels R# compiler2-Nov-05 17:57
213JaimeVargasC++ is now a language that is directly compilable. It doesn't go thru a translation to C.2-Nov-05 17:56
212JaimeVargasI can do a code review. And C++ is compilable by any standard compiler.2-Nov-05 17:56
211GrahamC++ is a domain specific language which is then converted to C. Is there a difference?2-Nov-05 17:54
210JaimeVargasBut the cosomter may ask to see the code. If you say your code is C. Then you are trapped?2-Nov-05 17:53
209GrahamC source for Rebol is closed.2-Nov-05 17:52
208JaimeVargasWhat happens if the ask for a code review?2-Nov-05 17:51
207GrahamDo what other people say - tell them you're using C :)2-Nov-05 17:48
206ChristopheBut we are Off topic here :-) Shouldn't we move to the "Chat" group ?2-Nov-05 11:30
205ChristopheYes, they want to be able to look forward. And REBOL stays "risky" in their critical eyes :-)2-Nov-05 11:29
204Pekrit is simply about feeling safe, so that IT manager can be sure and tell himself - look, someone other uses it too ....2-Nov-05 11:26
203Pekrwell, try to keep up your good work. What is standard anyway? Or just make some calculation, how using different technology makes process more complicated/expensive (unless your opponents don't use other open-source technology, e.g. python) ... the bad thing is, e.g. here in our company, that the price is not always deciding factor. RT does wery bad job here. Our managers want to read some success stories, want to see list of other customers who do use such technology .... some case studies etc. Maybe simply Europe uses different kind of logic than US.2-Nov-05 11:23
202ChristopheSince 2000, exclusively REBOL work! But I do not know how long I will be able to stand the position, because, despite the great results, we got a lot of opposition (not a standard, too cheap, no future, en so on...) :(2-Nov-05 11:20
201Pekrso you use rebol oficially at your work? That is nice. So far I used it only for few small utils here ...2-Nov-05 11:18
200ChristopheFYI, I have set 2 ppl working on an implementation of XPath into our XML function lib (temporary called "EasyXML"). Basically, we'll have 5 functions encapsulated into a context: 'load-xml file!, 'save-xml file!, 'get-data path! or block!, 'set-attribute string!, 'set-content string!2-Nov-05 11:17
199Pekryes, let's hope so, as then ashley can restart his work on otherwise excelent rebdb! :-)2-Nov-05 10:30

Return to Index Page