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

Thanks for that. I guess in the case of the ODF spec, the xslt export filter
should be simple-ish; all it has to do is write all text in style "RelaxNG"
to a new schema.rng file (as a raw text dump).

No, xml output, remember it is .rng, hence valid xml.



I've been googling around to find an example of how to do this, as I know
little of xslt. For example, the first schema line from the spec's
content.xml:

   <text:p text:style-name="RelaxNG">&lt;?xml version=&quot;1.0&quot;
encoding=&quot;UTF-8&quot;?&gt;</text:p>

It needs to reolve all the &lt stuff too I guess, unless XSLT export does
that automatically.

I think you'll need to find the XML version of the spec (assuming
there is one? Otherwise someone's been a bit silly.

'unescaping' all that crap shouldn't be necessary.

AFAIK Michael has abstracted the schema if that's what you want?
I know I wanted it some time back for 1.1





Do you (or anyone) know if the original script/stylesheet used by the ODF
spec guys is available? Or where I could start looking for a sample
style-based export filter stylesheet?

Ask Michael nicely?

or see
http://www.oasis-open.org/committees/office/faq.php

where the 1.0 schemas are linked from?

I'm sure google can find the 1.1 files.

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