[oXygen-user] Default Schema Association by file extension
James Cummings
Wed Mar 15 10:54:41 CST 2006
Hi George,
I finally figured out why this wasn't working. It was working fine in oXygen,
but the ODD file produced by Roma wasn't valid. (Having a <divGen> before the
<schemaSpec> as Roma produces was invalid, deleting the <divGen> did the trick.)
So oXygen was fine but the schema/file was wrong when I wasn't expecting it to
be. *doh* mea culpa.
-James
George Cristian Bina wrote:
> Hi James,
>
> Creating a mapping with .odd for filename should work but you must take
> into account that first rule that matches is applied so you need to move
> up your rule in the list of rules so that it is before the rule that
> associates the TEI namespace with your TEI schema.
>
> Best Regards,
> George
> ---------------------------------------------------------------------
> George Cristian Bina
> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
> http://www.oxygenxml.com
>
>
> James Cummings wrote:
>
>> Hi there, I'd like to set a default schema associate by file
>> extension. I.e.
>> I'd like all my *.odd files processed by another schema even though
>> they are in
>> the TEI namespace. I have it set that everything in the TEI namespace
>> gets
>> validated against a particular schema.
>>
>> So if I can't set by root element or namespace, but just want to say
>> anything
>> ending in .odd use this schema, is there a way to do that? I've tried
>> basing it
>> on filename but just putting *.odd or .odd doesn't work. Can we put a
>> regex of
>> some sort in here?
>>
>> Any suggestions appreciated.
>>
>> -James
>
>
>
--
Dr James Cummings, Oxford Text Archive, University of Oxford
James dot Cummings at oucs dot ox dot ac dot uk
More information about the oXygen-user
mailing list