[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Document formatting in Scheme
Hello!
On Fri, 26 Oct 2001, Noel Welsh wrote:
> It should be possible to express content in a fairly
> simple markup. E.g:
>
> (manual (title "scmunit")
> (introduction "scmunit is a unit-testing framework
> for...")
> (chapter 1 "blah blah"))
This (chapter ...) element has no straightforward XML mapping.
SXML uses
(chapter (@ (number 1)) "blah blah")
for representation of
<chapter number="1">blah blah</chapter>
using @ in XPath-like style, which makes it convenient for
SXPath:
http://okmij.org/ftp/Scheme/xml.html#SXPath
SXML specification may be found at:
http://okmij.org/ftp/Scheme/xml.html#SXML-spec
BTW, it provides an s-expr markup and transformation to HTML
and LaTeX, but this is just one of approaches possible.
In my own practice I'm mostly using XML/XHTML as source format
and SSAX
http://ssax.sourceforge.net
as XML->SXML parser.
Best regards,
Kirill.