Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.lisp > #60969 > unrolled thread
| Started by | Mario Rosell <mario@mariorosell.es> |
|---|---|
| First post | 2026-06-18 20:15 +0200 |
| Last post | 2026-06-20 22:42 +0000 |
| Articles | 11 — 4 participants |
Back to article view | Back to comp.lang.lisp
sxml - does anybody use it? Mario Rosell <mario@mariorosell.es> - 2026-06-18 20:15 +0200
Re: sxml - does anybody use it? ram@zedat.fu-berlin.de (Stefan Ram) - 2026-06-18 18:39 +0000
Re: sxml - does anybody use it? ram@zedat.fu-berlin.de (Stefan Ram) - 2026-06-18 18:41 +0000
Re: sxml - does anybody use it? ram@zedat.fu-berlin.de (Stefan Ram) - 2026-06-18 19:43 +0000
Re: sxml - does anybody use it? Mario Rosell <mario@mariorosell.es> - 2026-06-19 22:38 +0200
Re: sxml - does anybody use it? steve g <Sgonedes1977@gmail.com> - 2026-06-19 23:18 -0400
Re: sxml - does anybody use it? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-06-18 23:07 +0000
Re: sxml - does anybody use it? Mario Rosell <mario@mariorosell.es> - 2026-06-19 22:39 +0200
Re: sxml - does anybody use it? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-06-19 22:51 +0000
Re: sxml - does anybody use it? Mario Rosell <mario@mariorosell.es> - 2026-06-20 09:56 +0200
Re: sxml - does anybody use it? Lawrence D’Oliveiro <ldo@nz.invalid> - 2026-06-20 22:42 +0000
| From | Mario Rosell <mario@mariorosell.es> |
|---|---|
| Date | 2026-06-18 20:15 +0200 |
| Subject | sxml - does anybody use it? |
| Message-ID | <8733yjn2a8.fsf@mariorosell.es> |
I'm making a LISP-based S-exp to XML conversion program, for fun
mainly. I've mainly sticked to this notation:
'("!DOCTYPE html"
(html (:lang "en"))
(head
(title "An HTML site made with Mario's translator"))
(body
(h1 (:id "title" :class "center") "BASED SITE")
(p "Hello I made this with Mario Rosell's sexp2xml
tool.")))
To add tags, you do it using this weird : notation (plists), and you can
use strings to insert it literally.
I've come up with a format named SXML, it seems absolutely horrendous!
Just wanted to know if anybody uses this format, and if so, his opinions
on it, and maybe why do you use it.
--
- mario
[toc] | [next] | [standalone]
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Date | 2026-06-18 18:39 +0000 |
| Message-ID | <format-20260618193836@ram.dialup.fu-berlin.de> |
| In reply to | #60969 |
Mario Rosell <mario@mariorosell.es> wrote or quoted:
> '("!DOCTYPE html"
The doctype is expressed using a target language string,
rather than generated by a macro or function.
> (html (:lang "en"))
^ ^
This html element closes right on the same line.
>To add tags, you do it using this weird : notation (plists)
"lang" is an /attribute name/ in HTML.
"html" is a /tag/ in HTML.
>Just wanted to know if anybody uses this format, and if so, his opinions
>on it, and maybe why do you use it.
To get more answers, you could also ask:
|Just wanted to know if anybody does not use this format, and
|if so, his opinions on it, and maybe why he doesn't use it.
.
[toc] | [prev] | [next] | [standalone]
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Date | 2026-06-18 18:41 +0000 |
| Message-ID | <html-20260618194050@ram.dialup.fu-berlin.de> |
| In reply to | #60970 |
ram@zedat.fu-berlin.de (Stefan Ram) wrote or quoted: >"html" is a /tag/ in HTML. Sorry! "html" is an /element type name/, and "<html>" is an example of a /tag/ (start tag).
[toc] | [prev] | [next] | [standalone]
| From | ram@zedat.fu-berlin.de (Stefan Ram) |
|---|---|
| Date | 2026-06-18 19:43 +0000 |
| Message-ID | <SXML-20260618204302@ram.dialup.fu-berlin.de> |
| In reply to | #60969 |
Mario Rosell <mario@mariorosell.es> wrote or quoted: >I've come up with a format named SXML, When you write "I've come up with a format named SXML", it sounds as if you /authored/ the SXML specification. "I've come up with a format named SXML" = "He ideado un formato llamado SXML.", "Ho ideato un formato chiamato SXML.". But SXML was defined by Oleg Kiselyov.
[toc] | [prev] | [next] | [standalone]
| From | Mario Rosell <mario@mariorosell.es> |
|---|---|
| Date | 2026-06-19 22:38 +0200 |
| Message-ID | <87eci2mfje.fsf@mariorosell.es> |
| In reply to | #60972 |
Oh fuck, sorry! I meant that I found SXML while searching a bit on Wikipedia about this. -- - mario
[toc] | [prev] | [next] | [standalone]
| From | steve g <Sgonedes1977@gmail.com> |
|---|---|
| Date | 2026-06-19 23:18 -0400 |
| Message-ID | <87wlvthpbc.fsf@gmail.com> |
| In reply to | #60982 |
Mario Rosell <mario@mariorosell.es> writes: > Oh fuck, sorry! I meant that I found SXML while searching a bit on > Wikipedia about this. no worries, I think we have all done this one :)
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2026-06-18 23:07 +0000 |
| Message-ID | <1111toc$2uj2s$8@dont-email.me> |
| In reply to | #60969 |
On Thu, 18 Jun 2026 20:15:11 +0200, Mario Rosell wrote: > ... SXML, it seems absolutely horrendous! Is there an SJSON?
[toc] | [prev] | [next] | [standalone]
| From | Mario Rosell <mario@mariorosell.es> |
|---|---|
| Date | 2026-06-19 22:39 +0200 |
| Message-ID | <878q8amfhd.fsf@mariorosell.es> |
| In reply to | #60976 |
Fortunately or unfortunately, no. -- - mario
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2026-06-19 22:51 +0000 |
| Message-ID | <1114h5k$3l4ud$5@dont-email.me> |
| In reply to | #60983 |
On Fri, 19 Jun 2026 22:39:58 +0200, Mario Rosell wrote: > On Thu, 18 Jun 2026 23:07:57 -0000 (UTC), Lawrence D’Oliveiro wrote: > >> On Thu, 18 Jun 2026 20:15:11 +0200, Mario Rosell wrote: >> >>> ... SXML, it seems absolutely horrendous! >> >> Is there an SJSON? > > Fortunately or unfortunately, no. Why not, I wonder? most people seem to prefer JSON over the wordiness of XML these days.
[toc] | [prev] | [next] | [standalone]
| From | Mario Rosell <mario@mariorosell.es> |
|---|---|
| Date | 2026-06-20 09:56 +0200 |
| Message-ID | <87se6h8x2a.fsf@mariorosell.es> |
| In reply to | #60986 |
| Why not, I wonder? Because nobody has made SJSON, simply. If you really want it, then you could make it yourself, I guess... | most people seem to prefer JSON over the wordiness | of XML these days. T. I think you'd need to discard most of the ~nicenesses~ of S-expressions (like p-lists or dotted pairs) though, since JSON is rather limited to be honest. XML is also used much more in legacy systems. -- - mario
[toc] | [prev] | [next] | [standalone]
| From | Lawrence D’Oliveiro <ldo@nz.invalid> |
|---|---|
| Date | 2026-06-20 22:42 +0000 |
| Message-ID | <111751h$d3j2$8@dont-email.me> |
| In reply to | #61003 |
On Sat, 20 Jun 2026 09:56:13 +0200, Mario Rosell wrote: > T. I think you'd need to discard most of the ~nicenesses~ of > S-expressions (like p-lists or dotted pairs) though, since JSON is > rather limited to be honest. It has a wider variety of convenient data structures, namely lists and dicts (“objects” in JavaScript parlance). > XML is also used much more in legacy systems. “Legacy” being about right ...
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.lisp
csiph-web