cancel
Showing results for 
Search instead for 
Did you mean: 

How to specify namespace in DTD in XI

Former Member
0 Kudos

Can any one suggest me how can we specify namespace in case of DTD?

We have the following syntax in DTD

<!ATTLIST Envelope xmlns:eb CDATA #FIXED "http://www.ebxml.org/namespaces/messageHeader" > for the namespace

but this is not accepted by XI and we get following error when we click on WSDL tab.

"Unable to convert imported document to WSDL

Reason: Name "xmlns:eb" is incorrect

Check the selected category"

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Vivek,

You could covert your DTD to a XSD Schema using XML Spy or Stylus and then add in the namespace.

Thanks,

Jesse

Former Member
0 Kudos

Hi,

Is there an (step by step) instruction how to convert DTD with namespace to XSD in StylusStudio?

Do I have to remove the namespace from the DTD and then convert it to XSD and change the standard namespace to the one from the DTD?

Ron

former_member187339
Active Contributor
0 Kudos

Hi Vivek,

<b>You can specify namespace in your DTD.</b>

Go to this link and have a look

http://bobcat.webappcabaret.net/javachina/faq/xml_01.htm#dtd_Q25

You can specify namespace in your DTD

For eg:-

<i><!ELEMENT rzdocument (head, rzpara)>

<!ATTLIST rzdocument

first CDATA #FIXED "http://www.rz.com"

>

<!ELEMENT head (#PCDATA)>

<!ELEMENT rzpara (#PCDATA | rzem)*>

<!ATTLIST rzpara

first CDATA #FIXED "http://www.rz1.com"

>

<!ELEMENT rzem (#PCDATA)>

<!ENTITY first "xmlns:rz"></i>

Here if you haven't given <b><!ENTITY first "xmlns:rz"></b> then there will be a problem when you try to convert the document to wsdl.

Hope this will be helpful.

Regards

Suraj

Former Member
0 Kudos

Hi Jha,

I fear there is no possibility. The philosophies according namespaces are not compatible between DTDs and XSDs. The Integration Builder sticks to the XSD-philosophy.

Therefore, DTDs containing namespace-information cannot be used as External Definitions in the Integration Builder.

Former Member
0 Kudos

Hi Stephan,

Then why is this feature provided.Why do XI claims that it supports DTD?

Do you have any document which says that this is not supported?

Thanks & Best Regards,

Vivek

Former Member
0 Kudos

Hi Vivek,

DTDs are supported. But only for documents not making use of namespaces.

As I tried to point out the philosophy of DTDs is not compatible with the philosophy of XSD, in fact it is not compatible with the philosophy of XML namespaces itself.

Hence, it is considered to be not appropriate to describe the structure of an XML document using namespaces with a DTD.

Former Member
0 Kudos

Dear Vivek Jha,

We are facing the same issue (with the same dtd). What did you do to resolve this?

Appreciating your help,

Rudy Claassen