General XMetaL Discussion
nicolas.labrot December 17, 2010 at 1:44 pm
XMax : Insert image with a S1000D DTDDecember 17, 2010 at 1:44 pmParticipants 1Replies 2Last Activity 11 years, 11 months ago
I'm trying to insert new image inside a ASD 1.7 data module (in XML).
The image must be first declared as an external entity with a notation ndata.
For example :
I don't know how to do it.
I have found the method DeclareGraphicEntity but it doesn't work.
I have found the method DeclareExternalEntity but this method doesn't take an argument for the notation
Thanks for your help,
NicolasDerek Read December 20, 2010 at 6:35 pm
Reply to: XMax : Insert image with a S1000D DTDDecember 20, 2010 at 6:35 pm
You are saying that DeclareGraphicEntity() is failing. I'm assuming you mean the DeclareGraphicEntity() API seems to be failing to insert an ENTITY into the document's internal subset. Can you let use know which version of the S1000D DTDs you are using? If the NOTATIONs are declared in the DTD then this should work.
There is a limitation with XMetaL that could stop this API from functioning. If you declare an ELEMENT or NOTATION inside the internal subset of the XML document then the internal subset becomes read only for Tags On and Normal view. However, given what you have shown me that is not the case so I don't know why you are having trouble. ENTITY declarations can be added to the document in Tags On and Normal view using various APIs including DeclareGraphicEntity, and in XMetaL Author using the menu items and dialogs provided for that purpose.
Can you submit a sample of the files needed to reproduce your problem to XMetaL Support so they can try to reproduce your problem and show you how to configure things to work properly?
Please also let us know if you are working with XMetaL Author Essential, XMetaL Author Enterprise, or XMAX and which version of the product you have.
I am using the S1000D 2.3 DTDs right now with XMetaL Author Enterprise 6.0.1.030 and the DeclareGraphicEntity() API is working fine for me. There is a special notations.ent included with this version of the DTDs so there is no need to declare the notation types anywhere else.nicolas.labrot December 21, 2010 at 9:36 am
Reply to: XMax : Insert image with a S1000D DTDDecember 21, 2010 at 9:36 am
Thanks for your answer. I'm using XMax 6 (cf. subject for XMax)/
I have in the subset the notation :
Without this notation all work fine.
I will remove it.
- You must be logged in to reply to this topic.