[oXygen-user] how do I associate a framework by xml-model PI?
George Cristian Bina
george at oxygenxml.com
Mon Sep 23 01:43:06 CDT 2013
Hi Gerrit,
I logged this as issue EXM-28323 that says that we should add a filter
matching on schema location that can be any of
- the system ID of a DTD
- schemaLocation or noNamespaceSchemaLocation
- the href pseudoattribute of an xml-model PI
Initially the "Document Type Association" was called "Default schema
association" and the purpose of this was to be able to provide a default
schema at the application level instead of putting that directly into
the XML file (what locating rules provide for nXML for example). As you
can see, at this point having the schema information itself as part of
the rules did not make sense. Later on we extended this functionality,
step by step, to be the current frameworks which provide a lot more
information for that document type and now it makes sense to be able to
match on a schema location/name to be able to get access to the rest of
the framework information.
Best Regards,
George
--
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
On 9/22/13 12:37 PM, Gerrit Imsieke wrote:
> That’s what I thought.
>
> Luckily, in the BITS customization at hand, there’s a mandatory /*/@dtd-version attribute, based on whose value we can make the association.
>
> Btw, Wendell’s Framework works very well even for the customized schema.
>
> An xml-model-based association is desirable nonetheless, so I’m turning my question into a feature request.
>
> Gerrit
>
>
> George Cristian Bina <george at oxygenxml.com> wrote:
>> Hi Gerrit,
>>
>> The association between a document and a framework is done based on the
>>
>> filename, doctype declaration and on the root element name, namespace
>> or
>> root element attributes, so you cannot use the xml-model PI
>> information.
>>
>> Best Regards,
>> George
>> --
>> George Cristian Bina
>> <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
>> http://www.oxygenxml.com
>>
>> On 9/21/13 12:46 PM, Imsieke, Gerrit, le-tex wrote:
>>> oXygen folks,
>>>
>>> I want to associate Wendell Piez’ JATS framework with documents that
>>> don’t have a DOCTYPE or a namespace. They rather have an RNG schema
>>> associated via an xml-model PI:
>>> <?xml-model href="http://hobots.hogrefe.com/schema/hobots.rng"
>>> type="application/xml"
>> schematypens="http://relaxng.org/ns/structure/1.0"?>
>>>
>>> How can I achieve an RNG-based framework association?
>>>
>>> Gerrit
>>>
>
More information about the oXygen-user
mailing list