cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Converting SGML DTDs to XML

seanscott
1-Newbie

Converting SGML DTDs to XML


Dear Adepter's,



I believe that I have just successfully
converted one of our SGML DTDs over to XML using Arbortext 5.2. However,
is there some type of command that you can issue Arbortext Editor that
would return if the document instance along with its governing DTD is for
sure XML compliant according to the Xerces parser? This confirmation may
be overkill but the reason that I ask is that when I go into Help-->About
Arbortext Editor-->Session, there really is no information that tells
you if the instance and/or the DTD is XML compliant and what parser has
been used to ensure XML compliancy (Xerces or MarkIt). I believe it would
be beneficial for Arbortext Editor to tell the user what compliancy (XML
or SGML) the document instance falls in under and what parser was used
to confirm compliancy? Does anyone else see my point or am I off the mark
here?




Thanks,

Sean













This is an e-mail from General Dynamics Land Systems. It is for the intended recipient only and may contain confidential and privileged information. No one else may read, print, store, copy, forward or act in reliance on it or its attachments. If you are not the intended recipient, please return this message to the sender and delete the message and any attachments from your computer. Your cooperation is appreciated.
4 REPLIES 4

<br /><br />In the case of SGML DTDs, the Markit<br />parser is used always. With XML, if you don’t have to compile the<br />DTD, then you’re using Xerces. If your DTD has the version=’1.0’?&gt; PI at the top, the XML doctype will then be<br />required to be compiled and validated using the Markit parser.<br /><br /><br /><br /><br /><br /><br /><br />If your DTD is invalid, you will find out<br />before the document instance can be opened.<br /><br /><br /><br /><br /><br /><br /><br />-Jason<br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br />From: -<br /> <br /><br />Sent: Monday, October 02, 2006<br />4:03 PM<br /><br />To: adepters@arbortext.com<br /><br />Subject: Converting SGML DTDs to<br />XML<br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /><br /><br />Dear Adepter's, <br /><br /><br /><br />I<br />believe that I have just successfully converted one of our SGML DTDs over to<br />XML using Arbortext 5.2. However, is there some type of command that you can<br />issue Arbortext Editor that would return if the document instance along with<br />its governing DTD is for sure XML compliant according to the Xerces parser?<br />This confirmation may be overkill but the reason that I ask is that when I go<br />into Help--&gt;About Arbortext Editor--&gt;Session, there really is no<br />information that tells you if the instance and/or the DTD is XML compliant and<br />what parser has been used to ensure XML compliancy (Xerces or MarkIt). I<br />believe it would be beneficial for Arbortext Editor to tell the user what<br />compliancy (XML or SGML) the document instance falls in under and what parser<br />was used to confirm compliancy? Does anyone else see my point or am I off the<br />mark here? <br /><br /><br /><br />Thanks,<br /><br /><br />Sean<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />This is an e-mail from General Dynamics Land Systems. It is for the intended<br />recipient only and may contain confidential and privileged information. No one<br />else may read, print, store, copy, forward or act in reliance on it or its<br />attachments. If you are not the intended recipient, please return this message<br />to the sender and delete the message and any attachments from your computer.<br />Your cooperation is appreciated. &gt;&gt; To unsubscribe from the list, send an<br />email to listmanager@maillist.arbortext.com with the following in the body:<br />unsubscribe adepters - For additional information on the adepters list (how to<br />subscribe or unsubscribe etc), send an email to:<br />listmanager@maillist.arbortext.com with the following in the body: info<br />Adepters - You may also go to forums.arbortext.com, enter the Adepters folder<br />and change your subscription options and preferences.&gt;&gt; <br /><br /><br /><br />

I think that your XML DTD must have an XML Processing Instruction at the beginning, such as , or Arbortext Editor 5.2 will treat it as an SGML DTD and require a PTD and other binary files. When you try to compile an older doctype with 5.2 and tell the Editor that it is XML, but you do not have the PI at the beginning of the DTD, Editor will complain.
Other than that, I have no more guesses.

Sean,

Ed is right. If the DTD or instance DO NOT have the XML declaration (the
PI) then Epic will start to complain. If you have
converted your DTD and it parses with Epic using the -xml command
extension, then the file is compliant.

Once you have the DTD set for XML, then any instances prepared using it
will automatically get the XML declaration and be valid XML (as long as
you keep context rules turned on that is).

Lynn

list:

When I use Arbortext to convert SGML to XML, it drops the graphic entities.
(eg., ), how can I stop that.

d


Douglas Wade



--- @ WiseStamp Signature. <">http://www.wisestamp.com> Get it
now<">http://www.wisestamp.com>
Announcements