on 10-05-2004 11:50 AM
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"
Hi Vivek,
You could covert your DTD to a XSD Schema using XML Spy or Stylus and then add in the namespace.
Thanks,
Jesse
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.