Hi all,

When I was reading through the ODF specs [1], I noticed how they embedded
the actual Relax-NG scheme inside the document. This is called Literate
Programming, I learned from google. In this case, all text marked with the
RelaxNG style is extracted somehow, to form the final schema file.

This is a very neat idea that I'd like to adopt myself, when documenting XML
structures. But there's two things (at least..) that I can't figure out.

The first is probably easy: how can I get the line numbering in the left
margin as done in the spec? The numbering is done by the style, but I have
no idea how I can get it to appear (it's blank if I copy the style to my
own doc, and make a similar margin).

The second issue is how to go about with extracting from the main doc. Does
anyone know how it's done for the ODF spec? An external tool, or some XSLT
export?

Cheers!

    Rob

[1]
http://www.oasis-open.org/committees/download.php/20848/OpenDocument-v1.1-cs1.odt

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to