Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

I've got a groundbreaking idea.

Name: Anonymous 2008-09-06 14:08

What if, instead of just plain XML, or any other markup language for that matter, we build an executable file that upon execution prints whatever is stored in the file? That way we can run like:

$ ./index.xml

And then see the output of the file on stdout. Since the file is binary, we can't just edit it with emacs, so we have to make the file edit itself! For example:

$ ./index.xml --edit-node 3 --set-attribute name=haskell

What do you guys think, /prog/rammers?

Name: Anonymous 2008-09-06 17:29

>>1
How about we use a LISP program to store the actual data in such a way that running it will produce the XML document? Like this

(doctype whatever)
(node
  (subnode (list ('attribute value) ('another other)))
;node)

results:
<?DOCTYPE ...>
<node>
  <subnode attribute=value another=other/>
</node>

Suddenly XSLT looks like a dirty hack.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List