• sxml - does anybody use it?

    From Mario Rosell@mario@mariorosell.es to comp.lang.lisp on Thu Jun 18 20:15:11 2026
    From Newsgroup: comp.lang.lisp

    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
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From ram@ram@zedat.fu-berlin.de (Stefan Ram) to comp.lang.lisp on Thu Jun 18 18:39:41 2026
    From Newsgroup: comp.lang.lisp

    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.

    .


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From ram@ram@zedat.fu-berlin.de (Stefan Ram) to comp.lang.lisp on Thu Jun 18 18:41:30 2026
    From Newsgroup: comp.lang.lisp

    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).


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From ram@ram@zedat.fu-berlin.de (Stefan Ram) to comp.lang.lisp on Thu Jun 18 19:43:53 2026
    From Newsgroup: comp.lang.lisp

    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.


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.lisp on Thu Jun 18 23:07:57 2026
    From Newsgroup: comp.lang.lisp

    On Thu, 18 Jun 2026 20:15:11 +0200, Mario Rosell wrote:

    ... SXML, it seems absolutely horrendous!

    Is there an SJSON?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mario Rosell@mario@mariorosell.es to comp.lang.lisp on Fri Jun 19 22:38:45 2026
    From Newsgroup: comp.lang.lisp

    Oh fuck, sorry! I meant that I found SXML while searching a bit on
    Wikipedia about this.
    --
    - mario
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mario Rosell@mario@mariorosell.es to comp.lang.lisp on Fri Jun 19 22:39:58 2026
    From Newsgroup: comp.lang.lisp

    Fortunately or unfortunately, no.
    --
    - mario
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.lisp on Fri Jun 19 22:51:32 2026
    From Newsgroup: comp.lang.lisp

    On Fri, 19 Jun 2026 22:39:58 +0200, Mario Rosell wrote:

    On Thu, 18 Jun 2026 23:07:57 -0000 (UTC), Lawrence DrCOOliveiro 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.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From steve g@Sgonedes1977@gmail.com to comp.lang.lisp on Fri Jun 19 23:18:47 2026
    From Newsgroup: comp.lang.lisp

    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 :)
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Mario Rosell@mario@mariorosell.es to comp.lang.lisp on Sat Jun 20 09:56:13 2026
    From Newsgroup: comp.lang.lisp


    | 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
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to comp.lang.lisp on Sat Jun 20 22:42:57 2026
    From Newsgroup: comp.lang.lisp

    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 (rCLobjectsrCY in JavaScript parlance).

    XML is also used much more in legacy systems.

    rCLLegacyrCY being about right ...
    --- Synchronet 3.22a-Linux NewsLink 1.2