Pages: 1
Author Topic: XMax : Insert image with a S1000D DTD  (Read 3536 times)

Posts: 4

« on: December 17, 2010, 07:44:57 AM »


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 :
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dmodule PUBLIC "-//Eurocopter//DTD TIGER Air Vehicle Engines Equipment Description 20020131//EN"
 "dm_tiger_avee_d_1_0.dtd" [
<!ENTITY ICN-JP-A-947301-X-F9111-02002-A-02-1 SYSTEM "ICN-JP-A-947301-X-F9111-02002-A-02-1.cgm" NDATA cgm>

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,


Derek Read
Program Manager (XMetaL)

Posts: 2618

« Reply #1 on: December 20, 2010, 12:35:52 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 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.
« Last Edit: December 20, 2010, 12:42:45 PM by Derek Read » Logged

Posts: 4

« Reply #2 on: December 21, 2010, 03:36:14 AM »

Hello Derek,

Thanks for your answer. I'm using XMax 6 (cf. subject for XMax)/

I have in the subset the notation : <!NOTATION jpg SYSTEM "jpg">

Without this notation all work fine.

I will remove it.


Pages: 1
Jump to: