|
|
|
Re: ExtendedMetaData and <!DOCTYPE [message #482125 is a reply to message #482102] |
Tue, 25 August 2009 12:55 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
Mark,
No, there's no GenModel support for this. There are way too many save
and load options to support and doctype is kind of an antiquated thing
from the DTD days...
Mark Hoffmann wrote:
> Ed,
>
> this works very well. Is it possible to tell the genmodel or the model
> via annotations to save the doctype?
>
> Mark
>
> Ed Merks schrieb:
>
>> Mark,
>>
>> It seems best to use XMLResource's setDoctypeInfo in your resource factory:
>>
>> /**
>> * Sets the values of <a
>> href=' http://www.w3.org/TR/2004/REC-xml-20040204/#NT-SystemLiteral'>system</a>
>> and
>> * <a
>> href='http://www.w3.org/TR/2004/REC-xml-20040204/#NT-PubidLiteral'>public</a>
>> identifiers on this resource.
>> * @param publicId
>> * @param systemId
>> */
>> void setDoctypeInfo(String publicId, String systemId);
>>
>>
>>
>> Mark Hoffmann wrote:
>>
>>> Hi,
>>>
>>> I already posted last week how to customize the serialization of my
>>> ecore model. I use the ExtendedMetaData for this and it works very well
>>> now.
>>>
>>> Now I would like to add:
>>> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
>>> "../docbook-xml-4.5/docbookx.dtd"> to my de/serialization.
>>>
>>> But I don't have any idea how to do it using ExtendedMetaData. I've seen
>>> how to do this with code, but not with ExtendedMetaData.
>>>
>>> I think i have to add a reference or attribute to my DocumentRoot and
>>> add some ExtendedMetaData for the DOCTYPE, systemId, publicId? Or do I
>>> have to use other annotations?
>>>
>>> Thank you in advance,
>>> Mark
>>>
>>>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.02868 seconds