* [9fans] 9atom libxml and more xml stuff
@ 2024-07-25 13:43 sirjofri
2024-07-25 18:11 ` Steve simon
0 siblings, 1 reply; 11+ messages in thread
From: sirjofri @ 2024-07-25 13:43 UTC (permalink / raw)
To: 9fans
Hello everyone,
in the last few weeks I was working on making 9atom's libxml available as a separate bundle for easy installation. I also included xb (a beautifier) into the same package. My goal was to build an xslt processor.
However, a few features were completely missing in libxml, most importantly namespace support and xpath. I extended libxml to process namespaces properly (no validation though) and added xpath support as a separate library (because it can become quite big).
For xpath, I created a small utility for querying xml data using xpath (xq). Furthermore I have a working (and wip), but very limited xslt processor. Both tools are in a separate repository (xmltools).
Libxml and libxpath are available here:
http://shithub.us/sirjofri/xml-9atom/HEAD/info.html
https://git.sr.ht/~sirjofri/xml-9atom
Xq and xslt are available here:
http://shithub.us/sirjofri/xmltools/HEAD/info.html
https://git.sr.ht/~sirjofri/xmltools
I hope to extend xpath and xslt to make them work for most use cases, feedback and patches are welcome. Regarding xpath, I hope that the interface won't change at all.
If someone could tell me more about the licensing stuff (since libxml is from 9atom/lucent license, but plan 9 was relicensed/MIT), I'm happy to add license files to the repository accordingly. Libxpath, xq and xslt can be considered as MIT, I just didn't add the license files yet.
Also, since I'm only working on 9front, please let me know/send a patch if something doesn't work as expected on other plan 9 systems.
sirjofri
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M78a725684964ce34cb7fa911
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 13:43 [9fans] 9atom libxml and more xml stuff sirjofri
@ 2024-07-25 18:11 ` Steve simon
2024-07-25 20:13 ` Steve Simon
2024-07-25 20:25 ` sirjofri
0 siblings, 2 replies; 11+ messages in thread
From: Steve simon @ 2024-07-25 18:11 UTC (permalink / raw)
To: 9fans
I am fairly sure the libxml in 9front was from me.
My last code is at http://www.quintile.net/magic/webls?dir=/quintile.net
I packaged them as libxml.tbz and xml.cmds.tbz
It contains an (optional) string heap as I wrote this code for 16bit embedded systems with limited memory.
There is also matching json parser and command and a webdavfs which uses the xml code which might be of interest.
I hereby license 9front to take and use any parts of this as long as I continue get some credit for my work,
and if you make huge profits from this code, you owe me "some beer".
-Steve
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-Mf0cbe511024752f7a541c53c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 18:11 ` Steve simon
@ 2024-07-25 20:13 ` Steve Simon
2024-07-25 20:25 ` sirjofri
1 sibling, 0 replies; 11+ messages in thread
From: Steve Simon @ 2024-07-25 20:13 UTC (permalink / raw)
To: 9fans
[-- Attachment #1.1: Type: text/html, Size: 5142 bytes --]
[-- Attachment #1.2: favicon.ico --]
[-- Type: image/x-icon, Size: 894 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 18:11 ` Steve simon
2024-07-25 20:13 ` Steve Simon
@ 2024-07-25 20:25 ` sirjofri
2024-07-25 20:29 ` Steve Simon
2024-07-25 21:18 ` hiro
1 sibling, 2 replies; 11+ messages in thread
From: sirjofri @ 2024-07-25 20:25 UTC (permalink / raw)
To: 9fans
Hi,
25.07.2024 20:12:03 Steve simon <steve@quintile.net>:
> I am fairly sure the libxml in 9front was from me.
I guess you mean 9atom since 9front has no libxml?
> My last code is at http://www.quintile.net/magic/webls?dir=/quintile.net
>
> I packaged them as libxml.tbz and xml.cmds.tbz
> It contains an (optional) string heap as I wrote this code for 16bit embedded systems with limited memory.
Wow, that's really limited then. I'll try to see if the code matches, which should be proof enough that we're talking about the same code.
> There is also matching json parser and command and a webdavfs which uses the xml code which might be of interest.
Webdavfs (and also a server for "outside" access) would certainly be interesting.
> I hereby license 9front to take and use any parts of this as long as I continue get some credit for my work,
> and if you make huge profits from this code, you owe me "some beer".
At the moment I doubt that 9front will want to include my stuff. At least, I'm not planning to send a patch (yet). I share it with people, because xml support is somewhat missing.
sirjofri
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M1cb9b4aec5e71583785de93d
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 20:25 ` sirjofri
@ 2024-07-25 20:29 ` Steve Simon
2024-07-25 21:18 ` hiro
1 sibling, 0 replies; 11+ messages in thread
From: Steve Simon @ 2024-07-25 20:29 UTC (permalink / raw)
To: 9fans
yes, sorry 9atom not 9front.
i am happy for you to use the same license :-)
-Steve
> On 25 Jul 2024, at 9:26 pm, sirjofri <sirjofri+ml-9fans@sirjofri.de> wrote:
>
> Hi,
>
> 25.07.2024 20:12:03 Steve simon <steve@quintile.net>:
>> I am fairly sure the libxml in 9front was from me.
>
> I guess you mean 9atom since 9front has no libxml?
>
>> My last code is at http://www.quintile.net/magic/webls?dir=/quintile.net
>>
>> I packaged them as libxml.tbz and xml.cmds.tbz
>> It contains an (optional) string heap as I wrote this code for 16bit embedded systems with limited memory.
>
> Wow, that's really limited then. I'll try to see if the code matches, which should be proof enough that we're talking about the same code.
>
>> There is also matching json parser and command and a webdavfs which uses the xml code which might be of interest.
>
> Webdavfs (and also a server for "outside" access) would certainly be interesting.
>
>> I hereby license 9front to take and use any parts of this as long as I continue get some credit for my work,
>> and if you make huge profits from this code, you owe me "some beer".
>
> At the moment I doubt that 9front will want to include my stuff. At least, I'm not planning to send a patch (yet). I share it with people, because xml support is somewhat missing.
>
> sirjofri
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-Mf8eae2a151c2e43ea3760324
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 20:25 ` sirjofri
2024-07-25 20:29 ` Steve Simon
@ 2024-07-25 21:18 ` hiro
2024-07-26 1:50 ` Ben Huntsman
2024-07-28 15:47 ` sirjofri
1 sibling, 2 replies; 11+ messages in thread
From: hiro @ 2024-07-25 21:18 UTC (permalink / raw)
To: 9fans
as much as we all hate xml, i see no reason not to ship it as long as
it works well and there's something generally useful that depends on
it.
the same happened with other questionable legacy technology before,
e.g. TCP and http, so there's some precedence.
never forget that the majority of plan9 code exists just for
interoperability with other non-plan9 systems.
On Thu, Jul 25, 2024 at 10:26 PM sirjofri <sirjofri+ml-9fans@sirjofri.de> wrote:
>
> Hi,
>
> 25.07.2024 20:12:03 Steve simon <steve@quintile.net>:
> > I am fairly sure the libxml in 9front was from me.
>
> I guess you mean 9atom since 9front has no libxml?
>
> > My last code is at http://www.quintile.net/magic/webls?dir=/quintile.net
> >
> > I packaged them as libxml.tbz and xml.cmds.tbz
> > It contains an (optional) string heap as I wrote this code for 16bit embedded systems with limited memory.
>
> Wow, that's really limited then. I'll try to see if the code matches, which should be proof enough that we're talking about the same code.
>
> > There is also matching json parser and command and a webdavfs which uses the xml code which might be of interest.
>
> Webdavfs (and also a server for "outside" access) would certainly be interesting.
>
> > I hereby license 9front to take and use any parts of this as long as I continue get some credit for my work,
> > and if you make huge profits from this code, you owe me "some beer".
>
> At the moment I doubt that 9front will want to include my stuff. At least, I'm not planning to send a patch (yet). I share it with people, because xml support is somewhat missing.
>
> sirjofri
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M06e1e5a129b6fcf09a1585bf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 21:18 ` hiro
@ 2024-07-26 1:50 ` Ben Huntsman
2024-07-26 3:13 ` ori
2024-07-26 8:09 ` sirjofri
2024-07-28 15:47 ` sirjofri
1 sibling, 2 replies; 11+ messages in thread
From: Ben Huntsman @ 2024-07-26 1:50 UTC (permalink / raw)
To: 9fans
Is 9atom still updated in any way, shape, or form, or are you working off that really old version from like 10 years ago?
I really liked 9atom but it doesn’t seem to like modern hardware, and I always had a hard time getting it to run under VMware…
Thanks!
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M9dcb61c1503428cbafea7d0f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-26 1:50 ` Ben Huntsman
@ 2024-07-26 3:13 ` ori
2024-07-26 8:01 ` Steve Simon
2024-07-26 8:09 ` sirjofri
1 sibling, 1 reply; 11+ messages in thread
From: ori @ 2024-07-26 3:13 UTC (permalink / raw)
To: 9fans
Quoth Ben Huntsman <ben@huntsmans.net>:
> Is 9atom still updated in any way, shape, or form, or are you working off that really old version from like 10 years ago?
>
> I really liked 9atom but it doesn’t seem to like modern hardware, and I always had a hard time getting it to run under VMware…
>
> Thanks!
>
I don't think it's currently being maintained.
If there's something you think would be useful which
hasn't been integrated into 9front, I'd be happy to
look into it.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M4fe9206005d2ab26900ac1f0
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-26 3:13 ` ori
@ 2024-07-26 8:01 ` Steve Simon
0 siblings, 0 replies; 11+ messages in thread
From: Steve Simon @ 2024-07-26 8:01 UTC (permalink / raw)
To: 9fans
[-- Attachment #1.1: Type: text/html, Size: 6389 bytes --]
[-- Attachment #1.2: Brantley-Coile.jpg --]
[-- Type: image/jpeg, Size: 39493 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-26 1:50 ` Ben Huntsman
2024-07-26 3:13 ` ori
@ 2024-07-26 8:09 ` sirjofri
1 sibling, 0 replies; 11+ messages in thread
From: sirjofri @ 2024-07-26 8:09 UTC (permalink / raw)
To: 9fans
26.07.2024 03:50:56 Ben Huntsman <ben@huntsmans.net>:
> Is 9atom still updated in any way, shape, or form, or are you working off that really old version from like 10 years ago?
I'm working with this code currently:
https://github.com/Plan9-Archive/9atom/tree/master/sys/src/libxml
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M5042ba7a8bf3da765646347c
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [9fans] 9atom libxml and more xml stuff
2024-07-25 21:18 ` hiro
2024-07-26 1:50 ` Ben Huntsman
@ 2024-07-28 15:47 ` sirjofri
1 sibling, 0 replies; 11+ messages in thread
From: sirjofri @ 2024-07-28 15:47 UTC (permalink / raw)
To: 9fans
25.07.2024 23:18:46 hiro <23hiro@gmail.com>:
> as much as we all hate xml, i see no reason not to ship it as long as
> it works well and there's something generally useful that depends on
> it.
> the same happened with other questionable legacy technology before,
> e.g. TCP and http, so there's some precedence.
> never forget that the majority of plan9 code exists just for
> interoperability with other non-plan9 systems.
Thanks hiro. I'll try to make libxpath and xslt as complete as possible with the current code architecture, then we can consider adding it to 9front or any other system if that's fine with everyone.
sirjofri
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Te954fc89420dc526-M4131db3a67a9fd692293f42b
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-07-28 15:47 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-25 13:43 [9fans] 9atom libxml and more xml stuff sirjofri
2024-07-25 18:11 ` Steve simon
2024-07-25 20:13 ` Steve Simon
2024-07-25 20:25 ` sirjofri
2024-07-25 20:29 ` Steve Simon
2024-07-25 21:18 ` hiro
2024-07-26 1:50 ` Ben Huntsman
2024-07-26 3:13 ` ori
2024-07-26 8:01 ` Steve Simon
2024-07-26 8:09 ` sirjofri
2024-07-28 15:47 ` sirjofri
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).