On 11/01/07, Rob Kramer <[EMAIL PROTECTED]> wrote:

When I was reading through the ODF specs, 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.

What I can't figure out is how to go about with extracting the schema from
the main doc. Does anyone know how it's done for the ODF spec? An external
tool, or some XSLT export?

1. The spec itself is XML.
2. An xslt stylesheet is used to 'filter out' only those wanted
elements, the schema.
3. They are then gathered into appropriate bundles.

http://www.dpawson.co.uk/xsl/sect2/documentation.html may help.

regards


--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk

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

Reply via email to