Skip to main content
1-Visitor
April 18, 2011
Question

"Flattening" a DTD

  • April 18, 2011
  • 24 replies
  • 4503 views
Good Morning!
Haven't seen anything even close to this one:

Most of our DTDs have a significant portion of their content in entities (in some cases, all but the root element). This promotes, of course, the use of the same structure for a given purpose across all doctypes.

Our problem is, when we deliver data, we deliver a copy of the then-current doctype DTD as well. This means someone must gather up copies of all the needed entities, as well as the main doctype file. That has proven to mildly error-prone.

We tested using Architect or Editor to flatten the entities ('doc_flatten all'), but without success. The former has no Command Line in the requisite window, and the latter insists on loading a DTD as an ASCII file, in which case 'doc_flatten' has no effect.

Thoughts? Ideas?

Thanks in Advance,
Steve Thompson
TAD Technical
Boeing-IDS Technical Publications
+1(316)977-0515
MC K83-08
The truth is the truth even if nobody believes it, and a lie is a lie even if everyone believes it.

NOTICE: This communication may contain proprietary or other confidential information. If you are not the intended recipient, or believe that you have received this communication in error, please do not print, copy, retransmit, disseminate, or otherwise use the information. Also, please indicate to the sender that you have received this e-mail in error, and delete the copy you received. Any and all views expressed are the current understanding of the sender and should not be interpreted as an expression of official Boeing Company policy or position.

Les renseignements contenus dans ce message peuvent être confidentiels. Si vous n'êtes pas le destinataire visé ou une personne autorisée à lui remettre ce courriel, vous êtes par la présente avisé qu'il est strictement interdit d'utiliser, de copier ou de distribuer ce courriel, de dévoiler la teneur de ce message ou de prendre quelque mesure fondée sur l'information contenue. Vous êtes donc prié d'aviser immédiatement l'expéditeur de cette erreur et de détruire ce message sans garder de copie.




    24 replies

    1-Visitor
    April 19, 2011
    Bill,
    Our installation media do not include that app. But then, we're still using 5.2 on our PC workstations, so maybe it's something included in later versions.

    Thanks anyway,
    Steve Thompson
    +1(316)977-0515
    1-Visitor
    April 19, 2011
    Steve,



    Here is a snapshot from Epic version 5.1, and it is the same on 5.3 so I assume it would be there for 5.2 also.



    [cid:image001.png@01CBFE72.132E2830]



    -Andy



    \ / Andy Esslinger LM Aero - Tech Order Data

    _____-/\-_____ (817) 279-0442 1 Lockheed Blvd, MZ 4285

    \_\/_/ (817) 777 3047 Fort Worth, TX 76108-3916


    1-Visitor
    April 19, 2011

    Steve,


    Near and Far has been gone for sometime. I used to have a copy that worked great for SGML (must be smart to inclusions/exclusions and tag omission control), however no longer works on recent versions ofWindows.


    I have a manual process, probably no different than anyone else, so it's tedious. However, just as someone already mentioned, you have to add the human factor for errors.


    I've gone to the link that Gareth provided and you end up 'registering' on their site (in Germany) with a minimum of your last name, e-mail address and whether or not you want to participate in their e-mail listing. Then, they send you a link to the zip file so you can download it. So far, I'm onboard, but I have to wait until I get home to try it out since I'm not putting any 'free' software on my company's computer/network.


    I've also seen (through searches) some references to a program run through Perl, but could never get it to work.


    Assuming you still use the cut-back version of CPA, you know how many fragments the DTD sets are broken upinto. The initial 25 for CPA are now about 44 for me, all based on the 38784 (or variation to it). I am constantly flattening the DTD's and it takes me about a hour or so to get one done. A pain to say the least. I use a tool called "Search & Replace" by Funduc Software that does a lot of the work, followed by using TextPad to finish it up. The output is fairly decent for reading.


    Take care, and hope this helps some,


    Bob

    1-Visitor
    April 28, 2011
    So we finally got clearance to do a test install of Turbo XML. Good that far.

    Someone on here said they had to point it to the entity locations. I'm sure that was 'intuitive' for them, since the documentation and reviews all seem to describe it that way, but it hasn't fit my intuition yet.

    Or maybe I misunderstood.

    In any case, having difficulty getting it to see the location of the files referenced by our parameter entities. We're using entries that depend on the public ids being found using a catalog. Doesn't look like that's acceptable, but also haven't found where to give it the path to our 'DTDents' folder.

    Currently blaming sinusitis for my mental density,
    Steve Thompson
    +1(316)977-0515